What type of script should you use, if you want to a function to get executed on an event which is not user based. For example, if a script closes a workorder, would you be able to make another script that gets triggered when this happens
b
battk
03/29/2022, 8:52 AM
fair chance your user event gets triggered as long at that other script isnt another user event or workflow
c
c c
03/29/2022, 8:52 AM
What if the script that closes the workorders is a scheduled script?
b
battk
03/29/2022, 8:55 AM
scheduled scripts record edits can trigger user event scripts
c
c c
03/29/2022, 11:21 AM
So i want to make a script that gets triggered on workorder close, so i should just use a user event script? But closes are automated and happens automatically when the set quantity for the given workorder is produced
b
battk
03/29/2022, 11:52 AM
create a new user event script
make it trigger on all records and all context types
if it triggers when your work orders close, a user event is an option
if it doesnt, then you do a map/reduce or scheduled script