How can we find a script run behind a table insert??

Kiddy1
Tera Contributor

when i order a catalog item a ritm is created and a new record is inserted in opportunity table i need to find

out exactly which script behind worked on inserting the record  in opportunity table??

 

are there any logs type where i can see the scripts run i tried javascript log but the page is redirected and i loose information

 

thanks in advance

 

 

4 REPLIES 4

Bhagya Lakshmi
Mega Guru

Hi,

Did you check related workflows?

 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Kiddy,

Following places you can search for:

1) Business rule after insert on RITM table

2) Workflow running on that RITM. Check the script in the workflow

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

scott barnard1
Kilo Sage

If you are using a catalog item and it's writing to another table then I would guess it's in the workflow for the item

I would look in the item's workflow.

 

Regards

manjusha
Kilo Guru

Hi,

1.Please check business rule and workflow.

Blow is business rule written on sc_request table plase see it and find it.

Business Rule on ' sc_request' table  :Cascade Request Approval to Request Item.

Please mark this answer if  it help you.

Regards,

Manjusha.