Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Can response message can be removed from work-notes on incident

Ap_1
Tera Contributor

Generally the api failed response message, code and other details gets updated on the work notes of the related incidents 

 

Now we have a requirement that if the response message contains example "ABC" then work notes should be updated with a different warning message.

 

Can anyone suggest how to achieve this.

 

 

2 REPLIES 2

AnirudhKumar
Mega Sage

I suggest you break this down into the below:

- First, identify where is the configuration/code that updates the worknotes with API response

- Next, try and log out the message attribute in the response in that piece of code.

- Finally, use an if condition to check the message and the display appropriate alternative worknote.

jv_1
Tera Contributor

find the line where response is being assigned to work notes field in code and change the line to desired warning message . if you can share code may be i can give you better answer by doing modifications in the code .