Send JSON Payload through flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 02:30 AM
Hi Team,
Working on one Integration to send JSON payload to 3rd Party tool through flow designer. I have created an action comprising of Inputs and Output parameters with script to call REST message.
But, the input parameters mentioned in flow designer are not sending the request body in JSON format to 3rd Party tool.
Can someone suggest on this?
Thanks,
Shalaka Jaitapkar
- Labels:
-
Flow Designer
-
IntegrationHub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 02:36 AM
Is the payload in the picture commented out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 04:32 AM
Whenever I uncomment that code, I am getting an error but the input parameters should send the data.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2022 01:28 PM
What you have will not create a JSON Payload.
You will need somthing like this:-
var payloadObj = {
"name" : inputs.name,
"userId" : inputs.userId,
"groupgroupGuid" : inputs.groupgroupGuid,
"grouproleGuid" : inputs.grouproleGuid,
};
var body = JSON.stringify(payloadObj);
r.setRequestBody(body);
var response = r.execute();
Hope this helps,
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2023 08:08 AM
Instead of a script step, have you considered a using a payload builder step instead?