Sending Multirow variable set data (of record producer) through REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2025 09:42 AM
I want to set a response body through Scripted rest API which has the following format:
var myJSONData = {
"result" : {
"requests" : [
{
"Request" : "ABC123",
"Employee" : []
}
]
}
};
And i want to Assign the multi row variable set details to the variable Employee in above response body.
Could anyone please help how to achieve.
i tried to assign the mrvs details to result['EmpDetails'] in below method,
result['EmpDetails'] = mrvs;
But the above method , returns the variable as empty array in response body, whereas in loggers i am able to view correct data getting logged.
Thanks in Advance!!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2025 12:06 PM
You will probably have to parse the JSON and loop through the values and add each row to the MRVS individually.