catch error and create task from inbound action
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 03:17 AM
Hi,
im creating an inbound action and i want to make sure we catch an error and if there is one a task is created for our team.
currently we have this at the end of the inbound action but we dont want to scan the logs every time:
catch (err) {
gs.debug("EU Finance ERROR: " + err);
anyone has experience with doing this ?
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 04:10 AM
inside that catch block you can write GlideRecord
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader