How to pass array values in Custom Rest Activity in a workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2020 06:11 AM
Hi Everyone,
We are supposed to pass a list of values in a particular parameter for doing the POST Call API
I have chosen the input type as Array & tried to pass the list of values but it's not working could anyone correct me please
The values i passed for testing
The error i got
What is the correct way to give...... any help please ????
- Labels:
-
Orchestration (ITOM)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2020 06:27 AM
Hi Krishna,
the error says about credential not found and doesn't seem to say anything about array
Try sending hardcoded values for array
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2020 08:36 AM
Sorry My Bad! Attached the wrong screen shot correcting it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2020 08:44 AM
corrected it could you help me on this please

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2020 09:30 AM
Hi,
I do it other way round.
1) Created a REST Message with Proper content like the whole JSON is in content field of the post message.(example)
2) Create REST activity with input variables which are important for rest message.
Check this:
Thanks,
Ashutosh