Integration

si21
Tera Guru

Hi experts,

we are integration servicenow with sharepoint using below documentation.

 

Setting up the SharePoint Online Search Connector (servicenow.com)

While configuring in dev we mentioned the servicenow dev url. So how can we move this code to UAT and prod? Should we manually open record and update the URL. How this works in integration?

 

si21_0-1728410413442.png

 

TIA

 

1 ACCEPTED SOLUTION

Animesh Das2
Mega Sage

Hi @si21 ,

 

Yes, manually, you may open the record in every environment and modify the URL.

 

There is another way that you can follow by running fix script since it is just an one time activity,

In every environment there should be a system property 'glide.servlet.uri' which stores the URL for that particular environment(Dev/Test/QA/Prod etc) ServiceNow instance.

You can write a fix script which will read the URL from the system property and set the 'Redirect URL' field (gs.getProperty('glide.servlet.uri') + '/oauth_redirect.do') for that particular OAuth provider by doing simple glide record query and updating.

Then you just need to move the fix script as part of your update set and run that in every environment instance once.

 

If this address your question, please mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das

 

View solution in original post

1 REPLY 1

Animesh Das2
Mega Sage

Hi @si21 ,

 

Yes, manually, you may open the record in every environment and modify the URL.

 

There is another way that you can follow by running fix script since it is just an one time activity,

In every environment there should be a system property 'glide.servlet.uri' which stores the URL for that particular environment(Dev/Test/QA/Prod etc) ServiceNow instance.

You can write a fix script which will read the URL from the system property and set the 'Redirect URL' field (gs.getProperty('glide.servlet.uri') + '/oauth_redirect.do') for that particular OAuth provider by doing simple glide record query and updating.

Then you just need to move the fix script as part of your update set and run that in every environment instance once.

 

If this address your question, please mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das