We are using a script that uses the system.alarm.getRosters function to pull out the users in each roster and put it in a dataset memory tag which we want updated every time a change is made. The dataset memory tag is then used elsewhere.
The problem I’m having is finding out the most efficient way to trigger the script which writes to the dataset memory tag. I tried using the Roster management extension function “onSaveRoster”, but after making a change to a roster, it first runs the script with the old roster, then saves the new changes. So the dataset memory tag is outdated unless I go in and do a save again (with no changes) which picks up the change from the first time.
The Roster Management doesn’t have any built in properties that change, so the best I thought of is making a custom method of type date, and run an expression of now(5000) for example to run periodically, but that means it would be running the script needlessly at times. Any better way to do this? Thanks