- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2016 07:11 AM
To update incidents on reply emails, if the inc# or watermark is found on the email servicenow automatically updates the corresponding incident.
But we have a third party email sender, and requiring to update the incident. The email has a unique identifier in the body of the email like 'UID:123'.
An existing,open incident will have the same UID in the short description, by which am querying and updating the incident.
Technically the inbound processing is not attached to any record, but am updating the incident as intended.
Are there any pitfalls / violation of best practices?
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2016 07:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2016 07:27 AM
Thank you.
Had used an if(email.body.uid) at the start of the script. Might be a better idea to have it on the condition

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2016 07:34 AM
Agreed. You want the condition to state whether or not the action should run. Once you're in the script, it's already running.
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
If you are viewing this from the community inbox you will not see the correct answer button. If so, please review How to Mark Answers Correct From Inbox View.
Thank you