We are elated to announce a couple of enhancements to custom functions in our Workflows! Say hello to: "Source" and "Previous Values".
Ever wondered if your workflow was triggered due to a merge action or a regular delete? Say goodbye to guesswork! Now, with the new "Source" value in function arguments, you can easily identify the source of your workflow trigger. When a merge occurs (via Find and Merge Duplicates) between two records, the system deletes the child record and updates the master record. By passing "Source" as an argument in your function, you'll receive the value "Update(Merge)" for the master record and "Delete(Merge)" for the child record. No more confusion - just precise control!
P.S: This source parameter is now supported only for merging records. It will be supported for more actions in the future to find the source of execution.
Empower your custom functions with the ability to access the previous values of a record before any edits. Imagine the possibilities! For instance, you can now monitor plan upgrades and downgrades based on changes in the number of users (a custom field). By passing down the previous value of the user count, your custom function can find if there's a downgrade and take appropriate actions. Whether it's creating tasks or triggering specific processes, the power is now in your hands!
These new options will be available under "Execution Info" when configuring arguments for your functions from workflows. This hasn't been opened to all yet and is in Early Access mode. You can drop in your requests in the form linked below to provide you Early Access to these features.
Early Access form: https://survey.zohopublic.com/zs/zohocorp/RyzzFA
Stay tuned for more exciting updates!