How to find what all scripts are running on the form, when the form is Inserted or Updated ?

Madhan7
Tera Contributor

For Example: Whenever the child task work notes is updated the updated work notes is getting copied to the parent case work notes. and also whenever a child task is getting created it is having parent description in the child task work notes.

 

Is there any way to find which particular script is running among all the script to copy work notes whenever the child record is inserted ?

1 ACCEPTED SOLUTION

Hey @Madhan7 -

 

So what is a great tool the system has is called Script Tracer.

 

I just used that to help out with getting you an answer, the the BR that I saw getting triggered each time I entered in a Work Note on the HR Task, and it posted to the Parent HR Case, was Validate Changes business rule.

 

Once you get the tracer going and start it, go through loading an HR Task, entered in a Work Note, see that it populates to the HR Case (parent), and watch the tracer.

 

RobSestito_0-1692015727244.png

 

Give this a try and see if it works for you.

Keep me posted!

 

Cheers,

-Rob

View solution in original post

7 REPLIES 7

Rob Sestito
Mega Sage

Hey @Madhan7 - 

What may help is, if you go to an HR Task form, right-click on the header menu, and select 'Configure all'. This will bring you to most of everything running on the sn_hr_core_task table. This may help you in seeing what is running and what each part is doing, such as Business Rules, Client Scripts, etc.

 

RobSestito_1-1691837183635.png

 

RobSestito_0-1691837121853.png

 

You can do the same when on an HR Case form to see if that also helps.

 

Thanks,

-Rob

 

Hi @Rob Sestito 

I have already checked what all BR's and client scripts running on the HR task. But still I haven't found any Business Rule or client script that is updating the work_notes.

 

Is there any other way to find which particular script is running to update the work notes whenever the child record is inserted ?

Hey @Madhan7 -

 

So what is a great tool the system has is called Script Tracer.

 

I just used that to help out with getting you an answer, the the BR that I saw getting triggered each time I entered in a Work Note on the HR Task, and it posted to the Parent HR Case, was Validate Changes business rule.

 

Once you get the tracer going and start it, go through loading an HR Task, entered in a Work Note, see that it populates to the HR Case (parent), and watch the tracer.

 

RobSestito_0-1692015727244.png

 

Give this a try and see if it works for you.

Keep me posted!

 

Cheers,

-Rob

Hi @Rob Sestito 

 

Thanks for the reply.

This actually worked for me, but the major concern here is how the HRT work notes are getting updated with parent HRC description (whenever the new HRT is Inserted)

 

Please help !!