Want to add email id's in watchlist field through API.

dhanu3
Kilo Sage

Hi,

 

We are using OOB sn_sc service catalog API to create service request. It is working fine.

Now we want to add watchlist through this API. When I tried to add email id's or sys_id's through API, nothing get added to the watchlist in servicenow service request.

Any suggestions for adding watchlist through API.?

 

Regards,

Dhanashree

11 REPLIES 11

Akshata jamdar
Mega Guru

Hello dhanu,

 

Please refer below thread,

https://community.servicenow.com/community?id=community_question&sys_id=73164f61db1cdbc01dcaf3231f96...

 

Hope this will help you to resolve your query.

Kindly mark the answer correct and helpful if it will resolved your query.

Regards,
Akshata
(ServiceNow Developer).

 

Hi Akshata,

 

It didn't work for me. I don't want to set it on servicenow side. Other party will send watch list contents through API they are using for creating service request. It is done through OOB scripted rest API(which is not editable).

 

Regards,

Dhanashree

Hi Dhanu,

So watch_list field on sc_request you want to set?

since it is a reference field it expects comma separated sys_ids. How are they sending it?

Regards
Ankur

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

Hi Ankur,

 

It is setting values in sc_req_item.

I have tried to set watchlist with single sys_id only. But that also didnt worked.

"watch_list":"sys_id of user"

 

Regards

Dhanshree