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

Hi Dhanu,

Can you share how you are testing? Are you testing with Postman tool?

How the request body looks like?

Regards
Ankur

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

Hi Ankur,

 

Yes I am testing with postman and also from rest API explorer.

{"request_type":"create","requested_for":"sys_id of user","description":"test1","contact_type":"self-service","watch_list":"sys_id of user","sysparm_quantity":"1","sysparm_no_validation":"true"}

 

Regards,

Dhanashree

Hi Dhanu,

Is it updating other fields?

Regards
Ankur

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

Yes, for other fields it is working.

 

Hi,

any reference qualifier on that field?

Regards
Ankur

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