How to create a workflow for creating/updating/deleting records with error handling?
In this section, we will guide you through creating a workflow with error handling in noKodr.
Before proceeding to the next step, it's important to understand what a workflow is.
Reference: What is workflow?
Steps to create a workflow: Create Record Workflow
Create a business workflow.
Reference: How to create a business workflow?
Select Create Records Action from Data Actions, then select source type as Model and choose the object whose records you want to create.
Fill the details Label, Name, Description. Check the checkbox Is Async?, if you want to have the record creation action to be performed in async context.
Reference: Create Records Action
Connect Start element and Create Records Action using connector.
Select Toaster Action from Actions, then select Type as Success. Fill the details Relevant Success Message as Message and Details. Check the checkbox Override Result, if you want to display the Success Message from provided result from workflow input.
6. Fill the details Label, Name, Description. Check the checkbox Is Async?, if you want to have the Success Toaster action to be performed in async context.
Connect Create Record Action and Success Toaster using connector.
Repeat the same steps from step 5 to step 7 for Error Toaster action as well. Connect Create Record Action and Error Toaster using connector.
Your workflow should look like this now:
Steps to create a workflow: Update Record Workflow
Repeat all the steps 1-7 from How to build Create Record workflow for this. Just make sure to use Update Records Action from Actions instead of Create Records Action.
Your workflow should look like this now:
Steps to create a workflow: Delete Record Workflow
Repeat all the steps 1-7 from How to build Create Record workflow for this. Just make sure to use Delete Records Action from Actions instead of Create Records Action.
Your workflow should look like this now.