- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 09:56 AM
Hi Team,
Using BR, I'm calling a script include which triggers the REST message and I'm passing request body from the script include, where I'm able to pass the Start and End date & time but unable to pass the attendees list,
Sujatha V.M.
Solved! Go to Solution.
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 11:10 AM
Could you try the below script:
var attendees = [];
var attendeesObj = {}; //For iteration, loop it.
attendeesObj.email = 'testingoogleinvite@gmail.com';
attendees.push(attendeesObj);
gs.print(JSON.stringify(attendees));
reqbody.attendees = attendees; // Assigning the final value of the array
Sample Screenshot:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 10:10 AM
Could you try this,
var attendees = [];
var attendeesObj = {}; //For iteration, loop it.
attendeesObj.email = 'testingoogleinvite@gmail.com';
attendees.push(attendeesObj);
gs.print(JSON.stringify(attendees));
reqbody.attendees = JSON.stringify(attendees); // Assigning the final value of the array
Screenshot of the sample output from PDI:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 12:13 AM
Thank you for the response! I tried the similar way before posting and learnt the mistake!
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 11:10 AM
Could you try the below script:
var attendees = [];
var attendeesObj = {}; //For iteration, loop it.
attendeesObj.email = 'testingoogleinvite@gmail.com';
attendees.push(attendeesObj);
gs.print(JSON.stringify(attendees));
reqbody.attendees = attendees; // Assigning the final value of the array
Sample Screenshot: