List of possible ways to call script include function

Pari5
Tera Contributor

Hi All,

I have a script include which runs every time when the new change request is created. But I couldn't find where it is called from. I have checked in client scripts, business rules, UI action and catalog client scripts. 

Can you please let me know the possible ways to call script include.

Thanks in advance.

1 ACCEPTED SOLUTION

Hi Parimala,

As an admin can you enable debugging and then create new record; it will show what all business rules are being triggered. Also can you check whether that field has calculated value and that script include function is called in from the dictionary level?

Regards

Ankur

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

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Parimala,

Did you check any event getting triggered from your business rule? through this event there could be script action which would trigger once event is processed.

check in script action script contains the name of the script include.

also check any workflow on change request table which might be triggering this script include

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

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

Hi Ankur,

Thanks for your reply!

I have checked in workflows and Script action based on your comments. But it seems no luck.

The mentioned script include returns default group for the given user. So every time when a new change request created, the assignment group gets auto populated to default group based on requested by user.

We have an onChange (for assigned_to field) client script calling this script include. Other than this I didn't find anywhere calling this script include.

Is there anyway I can debug more to find the root cause for this issue?

Thanks again.

Hi Parimala,

Can you check assignment rules for that table?

Regards

Ankur

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

Thank you for your reply Ankur.

Sorry! There is no assignment rules for that table.

I don't know what i am doing wrong.