/
How to create a workflow for creating/updating/deleting records with error handling?

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

  1. Create a business workflow.

  1. Select Create Records Action from Data Actions, then select source type as Model and choose the object whose records you want to create.

image-20240923-084919.png
Data Action: Create Records
  1. 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.

image-20240902-091743.png
Create Records Screen: Config Tab
  1. Connect Start element and Create Records Action using connector.

image-20240902-092739.png
Connector
  1. 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.

image-20240923-085324.png
UI Actions: Toaster


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.

image-20240902-094135.png
Toaster Action Screen: Config Tab
  1. Connect Create Record Action and Success Toaster using connector.

image-20240902-094438.png
Connected Actions using Connector
  1. 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.

  2. Your workflow should look like this now:

image-20240902-094715.png
Connected Error Handling Action using Connector

Steps to create a workflow: Update Record Workflow

  1. 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.

  1. Your workflow should look like this now:

image-20240902-100904.png
Update Records Workflow

Steps to create a workflow: Delete Record Workflow

  1. 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.

  1. Your workflow should look like this now.

image-20240902-101743.png
Delete Records Workflow

 

Related content