Rest Messages and System Properties

Omar_Sanchez
Tera Contributor

Hello, I am working with Rest Messages and scheduled imports to make a rest request. following the servicenow docs 
https://docs.servicenow.com/bundle/newyork-application-development/page/integrate/outbound-rest/task...


I see that the endpoint may include variables using the format ${variable}. I currently have a system property an.example.property that I am using as a parameter for the endpoint field in the format ${an.example.property}. Running tests on this endpoint I am seeing that the endpoint field is not being populated with the system property value. Am I using this correctly?

6 REPLIES 6

Hi,

Yes. Using gs.getProperty(); and assigning it to a variable, like you've done, should accomplish what you were trying to do. Have you checked the end result?

will implement and then mark your answer as correct if all goes well. Thank you for the fast replies