How can we find a script run behind a table insert??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018 12:10 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018 12:16 AM
Hi,
Did you check related workflows?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018 12:17 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018 12:17 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018 12:30 AM
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.