catch error and create task from inbound action

jean-pauldehaas
Tera Guru

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

@jean-pauldehaas 

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