How to set variables in cart

pramodkumar
Tera Expert

Hi All,

 

How can we set list collector with Cart API? can we use cart.setvariable, if yes what is the format for list collector

 

 

Thanks,

Pramod 

2 REPLIES 2

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @pramodkumar 

Greetings.

List collector will only accept list of sys_ids 

so the format should be

"list_collector":"sys_id_of_record_1,sys_id_of_record_2

you can also refer similar thread:

https://www.servicenow.com/community/developer-forum/rest-api-list-collector-as-variable-on-submit-p...

Please hit the thumb and Mark as correct based on Impact!!

 

Kind Regards,

Ravi Chandra.

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @pramodkumar 

Greetings!

Any feedback on my reply? were you able to do this?

Help others to find a correct solution by marking the appropriate response as correct answer and helpful!

Kind Regards,

Ravi Chandra.