- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2017 10:44 AM
Hello,
I am trying to create a dynamic watch list based on caller ID. Ive found the following article how to and followed the instructions to the dot but I am still unable to update my watch list on my incident table.
Ive ensured my admin user account is set to "fake" user that is apart of the admin group, I also went through and made sure the api's put fields are correct. I am hoping someone may be able to shed some light. I know I am using express and perhaps that is my problem to start with, we have yet to migrate to enterprise, but this feature would be extremely helpful.
As instructed I went to Application Config> Web Services> api explorer> modify a record (PUT) https://company.service-now.com/api/now/table/{tableName}/{sys_id}
I adjusted {tablename} to Incident (the table I want to adjust), then I set the "/{sys_Id}" to "/${sys_id}" after that I went to REST Messages
Created a New REST Message, set the endpoint to "https://company.service-now.com/api/now/table/Incident/${sys_id} ", set the authentication type to basic, made an admin account using a an administrator credentials. Next I created an HTTP Methods Put and once again set the endpoint to "https://company.service-now.com/api/now/table/Incident/${sys_id} " and HTTP method to PUT. I set the HTTP REquest content to "{'watch_list':${existing_watch_list},${opened_by_manager}'}" and saved the HTTP Method
Next I headed over to Business Rules and created a new one, I set the table to "Incident" and to run when state is set to active, then I headed over to Web services. I set the REST Service to the REST Message I created, and set the REST Method to the HTTP Method put that I created.
Variable substitutions populated corrected. I then set the sys_id to "Sys ID" , Opened_by_manager to (show related fields > assigned to - user fields > Manager - User Fields > Sys ID) , existing_watch_List to Watch list, with all of them set to "same as"
Now I know the rule is running because I did a simple test for actions to verify the rule is running. any suggestions? please let me know if I need to clarify anything! Thank you in advance for your assistance and help!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 01:35 PM
The issue is still with the formatting. You are still missing a '
{'watch_list':'${opened_by_manager},${existing_watch_list}'}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 08:16 PM
On the rest PUT message, on the related link at the bottom you see "auto generate variables" as well as "test".
First, press "auto generated variables".
Then put in the sys ID of an incident, and of a manager in the corresponding fields.
Then press test and post the result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 07:20 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 12:05 PM
Ahh I see your issue. You are using the record number, when you should be using the record SysID!
Please update the endpoint call with the right substitution and try again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 01:40 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2017 09:04 PM
You are close! You understood correctly. Your content is wrong though. You typed ,Jacques Morlet'}. It should be 'sysIDofJacques Morlet'