Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Passing a system property value to HTTP Query Parameters on an integration REST method

James Pesetsky
Tera Contributor

Looking for guidance on how to pass a system property value to an integration REST Method's HTTP Query Parameters in order to filter incoming payload data. The parameter accepts a list of unique IDs stored within a variable, what I am trying to do is store the contents of this variable in a system property so it can be maintained in production. How can I pass a sys_property value to the column below?

 

JamesPesetsky_0-1720625902424.png

 

2 REPLIES 2

AnveshKumar M
Tera Sage

Hi @James Pesetsky 

 

Have you tried the following?

 

Assuming you are calling this REST Message from some script (may be a BR), in the script, get the Property value and set the query parameter variable value.

 

var policyid = gs.getProperty('Your Property Name');
var r = new sn_ws.RESTMessageV2('REST Message Name', 'HTTP Method Bame'); r.setStringParameterNoEscape('policyid', policyid);
....
....
....

 

 

Thanks,
Anvesh

As it is part of an officially supported plugin, I was hoping to avoid customizing any scripts to ensure they continue to be updated throughout future plugin upgrades. For this reason I was wondering if there were a way to pass a sys_property value through the UI as though it were a variable.