Adding a Record Delete Diagram Element to a Flow
Functions
This diagram element is for deleting instance records of platform objects, akin to using a "DELETE" statement in a database.
Using the Record Delete Diagram Element
- On the flow designer, choose Basic and drag the Record Delete diagram element to the canvas.
- Click the Record Delete diagram element, click
, and set basic information.
- Click
and complete the configuration.
- If you select Use fast delete mode in the previous step, you need to specify a predefined object variable or object variable array, drag the object variable or object variable array to the variable text box, and use the record ID of the object variable or object variable array to delete the corresponding object record. As shown in Figure 1, the record ID of the accountDelete object variable is used to delete the object record.
Table 2 Parameters for the fast deletion mode Parameter
Description
Object
Predefined object variable. You can use this object variable or the record IDs within an object variable array to delete object records.
You can drag a variable from the context or directly enter an object variable or object variable array.
Rollback if current process ends with error
Rolls back to the previous process when an error occurs in the current flow.
This parameter is selected by default. Do not change the settings unless otherwise specified.
- If Use fast delete mode is not selected in the previous step, you need to specify the object and set values for certain fields of the object in the conditions to delete records that meet the conditions. Delete the record whose name is Lily from the Account object, as shown in Figure 2.
Table 3 Parameters for the common deletion mode Parameter
Description
Object
Select an object from the drop-down list.
Rollback if current process ends with error
Rolls back to the previous process when an error occurs in the current flow.
This parameter is selected by default. Do not change the settings unless otherwise specified.
Condition
After an object is selected, the fields of the object are displayed in the field column. Click Add Row to set the conditions for deleting data.
Select the object field to be judged from the field drop-down list, select the corresponding comparison operator from the operator drop-down list, and drag a variable from the context or enter {!Variable name} in the value text box.
- If you select Use fast delete mode in the previous step, you need to specify a predefined object variable or object variable array, drag the object variable or object variable array to the variable text box, and use the record ID of the object variable or object variable array to delete the corresponding object record. As shown in Figure 1, the record ID of the accountDelete object variable is used to delete the object record.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot