How to automatically modify the relevant data when data in the worksheet changes?
When the data in the worksheet changes (a new record is added or a record is modified), the following can be realized through the nodes [Update Record] or [New Record] in the workflow:
-
Modify the contents of other fields in the current record.
-
Modify the content of fields in other records.
I. When data in the worksheet is modified, automatically modify some fields values in the record
For example: Project Management worksheet, in a task record, if "Status" is changed to "Completed", automatically modify the "Completion Time" in the record to the current time.
Workflow Configuration:
1. Set the trigger
-
Select the Task worksheet;
-
Way to trigger: Only when updating records;
-
Trigger condition: The workflow is triggered when the status is "Completed".
2. Set to automatically modify the completion time field in the record
Select the node [Update Record].
Configuration:
-
Object to be updated: Select the record to be modified, that is, the record that triggers the workflow.
-
Field to be updated: Select "Completion Time", and the value is changed to "Current Time".
-
Save and publish the workflow.
II. When data in a worksheet is modified, automatically modify the data in other worksheets
Example
- When a record is added to the Outbound Detail worksheet, modify the inventory of this product in the Product worksheet.
Configuration:
- In a project record, if the status of the project is modified to [Closed], the status of the task associated with the project will be automatically modified to [Discontinued] in a batch.
Configuration:
TIPS:
In the workflow, if you want to modify a record or multiple records, you must locate them in the workflow, that is, there must be a node pointing to them, for example, you can rely on the nodes like [Search for Specified Data], [Obtain Specified Associated Records] and [Get Batch Data] to locate them, and then modify the records.