What defines the "First Save" vs "Every Time" criteria used for Automations
Posted: Tue Dec 07, 2021 12:10 pm
We have a shell and several console apps running with the SDK (4.3.60210.48) and there was an automation created a while back that tries to keep the status fields in sync with each other regardless of what is saving the file.
The automation rule runs on "First Save", but in reality that seems to be running any time the file is saved and closed. This has been fine so far but we are creating a new console app to automatically cancel out invoices over a certain age and do whole slew of other business rules, notifications, etc. If all invoices that exist on a file are either canceled or removed, the Order Status is also set to Canceled. This is problematic as it then automatically changes values on Checklist items, which in turn drives Work Lists for several departments.
The problem is that in doing this (either through SP or through a console app), the automation runs and then sets both the Title and Escrow status to Canceled as well. I can certainly work around this by adding additional criteria to the automation snippet to NOT update the title or escrow status if they are already marked as complete, but I want to better understand the automation process and what is meant by "First Save" vs "Every Time" since automations run regardless of the saving source (like a console app created in the SDK).
The automation rule runs on "First Save", but in reality that seems to be running any time the file is saved and closed. This has been fine so far but we are creating a new console app to automatically cancel out invoices over a certain age and do whole slew of other business rules, notifications, etc. If all invoices that exist on a file are either canceled or removed, the Order Status is also set to Canceled. This is problematic as it then automatically changes values on Checklist items, which in turn drives Work Lists for several departments.
The problem is that in doing this (either through SP or through a console app), the automation runs and then sets both the Title and Escrow status to Canceled as well. I can certainly work around this by adding additional criteria to the automation snippet to NOT update the title or escrow status if they are already marked as complete, but I want to better understand the automation process and what is meant by "First Save" vs "Every Time" since automations run regardless of the saving source (like a console app created in the SDK).