How to push rest message between instances via update set & have different values instance specific?

Suggy
Giga Sage

We have two instances - DEV and PROD.

 

In DEV, rest messages are created with end point of external tool like - 'http://ext.dev.com' and captured in update set.

The external tool has different end point for their prod - 'http://ext.prd.com'

 

Issue is, when we commit this update set in PROD, we need to manually update the end point.

 

Similarly, we have used MID server, system property etc. the values of MID server and system property is different in dev and prd. We again have to correct this manually in PROD.

 

Is there a solution to avoid this manual changes?

3 REPLIES 3

mihirlimje867
Tera Guru

Hello @Suggy ,
This is the only way to edit the endpoint manually from each instance.

If we are talking about cloning so for you need to review the following points:
There are two options available:

1. Exclude and Preserve the Rest Message or Rest Method table from cloning. For further details, please check here:

https://docs.servicenow.com/bundle/madrid-platform-administration/page/administer/managing-data/task...

2. Add Post-clone cleanup script that will delete the confidential records from the  after cloning is complete. For further details, please check here:

https://docs.servicenow.com/bundle/madrid-platform-administration/page/administer/managing-data/conc...

 

 

Article everything need to know about cloning :-

https://community.servicenow.com/community?id=community_article&sys_id=c770ae21db50c114fd8d2b6913961...

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0715621

Let me know in case you have any questions.

Best regards,

Thank you.

Community Alums
Not applicable

Hi @Suggy Are you using Integration hub to send the rest messages? If so, you can have the credentials stored for both Dev and Prod in the connecion and credential aliases module. All you need to do is to deactivate the connections based on the instance you want. In this case, its a one time process and no need to change the endpoints. 

 

Regards,

Gagan k

@Community Alums No, we are not IH. Without IH, any solution is available?

And what about for system properties? when system properties have different values across instances.