Troubelshooting a record producer

yasserbouat
Tera Guru

Hello,


When an end user fills out and submits a record producer or catalog item on the portal, various Flows, UI Policies, Client Scripts, Business Rules, and other backend processes are triggered and applied to the record to perform specific actions. My question is: Is there a way to view, check, or track which actions have been applied (with timestamps) to this record producer after submission? For example, is it possible to click a button and see that at 9:00 AM, UI Policy number 0X was applied, and then at 9:01 AM, Client Script number 00X was executed, etc.?



Thanks,

3 REPLIES 3

Ehab Pilloor
Mega Sage

Hi @yasserbouat

 

There is no unified way to check if particular script or policy was applied after submission. You can enable Activity stream to show updates of every field on the form at any time but it wont show why it happened.

You have to use different methods for different components.

 

You can use gs.log() for server side scripts and g_form.addInfoMessage() for client side scripts.

 

Regards,

Ehab Pilloor

SK Chand Basha
Tera Sage

Hi @yasserbouat 

ServiceNow does not natively provide a single consolidated view or audit log of all scripts (UI Policies, Client Scripts, Business Rules, Flows, etc.) executed on a record producer or catalog item along with timestamps.

Ankur Bawiskar
Tera Patron
Tera Patron

@yasserbouat 

no direct way but you will have to manually test this out and see which runs as per the config.

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