Prevent Duplicates While Creating or Updating Records using Workflow

Suppose you are setting up a workflow for generating “New Account” records and you want to find if there are duplicate account records existing in your CRM system. Then, no worries, you can find duplicates using our action in workflow.

Here we’re going to execute duplicate detection from Workflow. For the current scenario, we’re using an on-demand workflow, but we can execute or trigger the same for all triggering stages of the workflow.

  • Navigate to Advanced Settings --> Processes --> New Process --> Fill the fields --> Click on OK.

Creating or Updating Records using Workflow
  • Scope: Select ‘Organization’.

  • Check on ‘As an on-demand process’.

Creating or Updating Records using Workflow
  • Click on ‘Add Step’ and select ‘Perform Action’.

Creating or Updating Records using Workflow
  • Action: Select “InogicDeDupeDGetDuplicateRecordsCount” action.

  • Entity: Select “None (global)”.

Creating or Updating Records using Workflow
  • Click on ‘Set Properties’.

Creating or Updating Records using Workflow
  • Fill in the details inside or input parameters, which will then be captured by Action.

    • PrimaryEntityDetails: Here we’re passing the values of PrimaryEntityDetails in json format,

      Ex: {"Attributes":{"name":"Parker"},"EntityId":"","PrimaryIdAttribute":"accountid"}

    • PrimaryEntityName: Account

    • MatchingEntityName: Account

  • Click on ‘Save and Close’.

Note: While creating a record, EntityId should be empty and while updating a record, EntityId should be the record ID that is being updated!

Creating or Updating Records using Workflow
  • Click on ‘Add Step’ and ‘Check Condition’.

Creating or Updating Records using Workflow
  • Here, we will check the condition whether the duplicate record count is equal to 0. Similarly, you can define any condition.

Creating or Updating Records using Workflow
  • Click on ‘Save and Close’.

Creating or Updating Records using Workflow
Creating or Updating Records using Workflow
  • Add another step under the above-added step and select ‘Create Record’.

Creating or Updating Records using Workflow
  • Now the workflow will run and create a new account record since no duplicate records are found inside the account entity.

Last updated

Was this helpful?