- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2021 11:30 PM
hello all,
add multiple fields in system properties and send that field when rest message is called.means want to send dynamic field name in integration.
please help
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2021 12:04 AM
If you have nested data object in your responseBody then you can use something like this:
var fields = gs.getProperty('propertyName').split(',');
for (var index in fields) {
var field = fields[index];
customBodyObject.data[inputs] = current.getValue(field); //here customBodyObject is object that your are preparing and data is abother object in your jsonBody. current is GlideRecord obj
}
Thanks,
Anil Lande
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2021 09:42 PM
Hi,
Did you get chance to check proposed solution? Please let us know if you have any further questions.
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2021 12:12 AM
Hi,
Thanks for response. i resolved my query using your suggested answer.
Thank you