Workflow to send a mail if two identities have the same employee number

Hello! We’re making a workflow that sends a mail to the admin when an identity is created with a repeated employee number. Our problem is determining how to configure the workflow to follow different paths if the “get list of identities” retrieves no accounts or multiple accounts.

Thank you in advance

Please see the following thread. I had a similar issue I needed to solve and this thread is how I solved for it. If you need the code behind the report mentioned in this thread please let me know.

1 Like

hey , Use a httpRequest for the Search API , if any results come back you send the e-mail if not just exit.

Best!

Thank you for your answer! But I’m looking for something more simple. Can’t something be done inside the workflow to achieve that?

Thank you for your answer! Can’t it be done without the search API?

  1. Are there any accounts with repeated employee number?
  2. Use Define Variable below Get List of Identities which contains something like this
    Identity 1 - JSON path to get 1st account ID
    Identity 2 - JSON path to get 2nd account ID
  3. Use Verify Data to check if Identity 2 have any value if yes send email else end the workflow

Yeah , Imagine that you want to search for the IdentityName. the expected result is 1 , if is 2 you know something is wrong. Best!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.