Creating dynamic web service endpoint for dev/test/prod

elemonnier
Tera Expert

I'm curious if anyone has created a solution for dynamically setting the endpoint for different environments using the Workflow Custom Activities? On that form you just select the SOAP message, function, and endpoint. You don't have a way to call "setEndPoint". I also tried using ${gs.getProperty('acom.oracle.' + gs.getProperty('instance_name') + '.endpoint')} in the endpoint and it doesn't seem to translate on execution.

2017-08-16_10h08_54.png

1 ACCEPTED SOLUTION

manikorada
ServiceNow Employee

Eric,



You need to set the end point to the input variable and then use it in End Point field.


View solution in original post

2 REPLIES 2

manikorada
ServiceNow Employee

Eric,



You need to set the end point to the input variable and then use it in End Point field.


That seems to have worked!



I would have expected ${gs.getProperty('acom.oracle.' + gs.getProperty('instance_name') + '.endpoint')} to work just as good as ${activityInput.Endpoint} but alas, I should not make assumptions.



thank you



Eric