Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2018 06:38 AM
Hi
You need to do variable substitution on each of your parameters. Then you can set the value of each parameter in the script you are calling the REST message from.
Example: A REST messages need the following JSON:
{"country":"name of country","street":"name of street"}.
In Query parameter you specity this as
{"country":"${country}","street":"${street}"}
In your script you can then set the value of each of these variables:
var r = new sn_ws.RESTMessageV2('REST message name', 'post');
r.setStringParameter('country', 'Denmark');
r.setStringParameter('street', 'Main road');