How to pass array values in Custom Rest Activity in a workflow

krishna26
Kilo Expert

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

 

find_real_file.png

 

The values i passed for testing

find_real_file.png

 

The error i got

find_real_file.png

What is the correct way to give...... any help please ????

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Sorry My Bad! Attached the wrong screen shot correcting it

corrected it could you help me on this please

Ashutosh Munot1
Kilo Patron
Kilo Patron

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