Passing a system property value to HTTP Query Parameters on an integration REST method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 08:40 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 11:28 AM
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);
....
....
....
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2024 12:57 PM
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.