Hi Pat,
It sounds like your have a design issue with your scripts in general.
There are two things to consider, for a given Object / Attribute etc you should only have a single script that owns the launch point. If you want to break your script up into multiple scripts, do so and then call those scripts from the one that owns the launch point. This way you have control over which scripts fire and what order the execute in.
Here is an article that explains this approach: https://www.sharptree.io/blog/2021/2021-11-29-js-invoke-library/
The other thing I recommend is using a main function as the entry point for your script. Something like:
Python:
def main():
# your code here
main()
JavaScript:
main();
function main(){
// your code here.
}
This lets you have an entry point within the script from which you can exit. So anywhere in the process you can call return and stop execution without worrying about falling through and executing something unexpected.
Hope that is helpful.
- Jason
------------------------------
Jason VenHuizen
Sharptree
------------------------------
Original Message:
Sent: 09-14-2023 11:26
From: Pat Galloway
Subject: How to prevent other automation scripts from firing when update record
Thanks Prashant - good idea that I had not thought of.
------------------------------
Pat Galloway
Galloway Consulting
------------------------------
Original Message:
Sent: 09-13-2023 11:30
From: Prashant Sharma
Subject: How to prevent other automation scripts from firing when update record
In the automation script which you want to run only from UI and not from Escalation, use interactive check.
If interactive==True:
//your logic which should run from UI and not from escalation.
------------------------------
Prashant Sharma
Sedin Technologies
Connect with me @ https://www.linkedin.com/in/psharmamaximo/
#IBM Champion 2022
#IBM Champion 2023