Best way to sync data between instances?

EJ13
Tera Contributor

Hi all,

 

I have two prod instances, and I need to make sure that the user tables on both remain in sync. How would I go about doing this? I am aware of Instance Data Replication, but we don't have a subscription to it so I'm looking for an alternative. Thank you!

1 ACCEPTED SOLUTION

Shivalika
Mega Sage

Hello @EJ13 

 

1)You may either create a scheduled import from your one instance to other which pulls the data from one to other daily. 

2)You can create a REST Message with endpoint as your second instance and in "POST" method you can create the same user in target instance also. This "Rest message" will trigger via a "BR every time there is an insert in sys_user" table.

 

Both are good options. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

View solution in original post

4 REPLIES 4

Uncle Rob
Kilo Patron

Something called Instance Data Replication has been out for a while.  You could ask your rep about it.

Shivalika
Mega Sage

Hello @EJ13 

 

1)You may either create a scheduled import from your one instance to other which pulls the data from one to other daily. 

2)You can create a REST Message with endpoint as your second instance and in "POST" method you can create the same user in target instance also. This "Rest message" will trigger via a "BR every time there is an insert in sys_user" table.

 

Both are good options. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @EJ13 

 

Data replication is a good option, but as you said you don't have a subscription, then API is good option, create rest API and sycn the data.

 

https://youtu.be/Pqf49CBoOoI

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************
csa #ServiceNow #TechnoFuncational @ServiceNowCommunity @servicenow Disclaimer: These videos are from my training batch. These videos did not promote any ServiceNow Sales pitch or marketing. These videos are only for knowledge purposes based on my experience and knowledge. Redistribution or ...

Shivalika
Mega Sage

Hello @EJ13 

 

Please confirm if you checked my answer. Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for my efforts and also it can move from unsolved bucket to solved bucket. 

 

Regards, 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeE