I have a ‘days remaining’ field which I need updating when certain trigger events occur, so that we can monitor the time remaining with a particular team.
Initial values:
Days Remaining: 14
Day Raised: 10-Sep-2033
Now(): 20-Sep-2023
Example would be:
Old days Remaining - (Now - Day Raised) = New Days Remaining
14 - ((20-Sep-2023) - (10-Sep-2023)) = 4
I think I would need to see what you are trying to achieve and the triggers that are required. My expectation would be that this would be a computation within a specific workflow. If you need to use this like a function then a requirement to use a manual trigger workflows may come into play.
You could also use HTTP posts to call a third party piece of software to do the calculation but it should all be achievable within Alloy so I wouldn’t see a need for that.