Validate Phone Number using Loqate

Summary:

This article describes a business use case of validating phone number using the Loqate connector and logging an error message for invalid phone number.

Pre-requisite:

  • User should have a working webMethods.io Integration tenant.

  • User should have a working Loqate and Salesforce CRM account.

Steps:

  1. Login to webMethods.io Integration tenant and create a workflow.

  2. Search for Loqate connector from the applications list.

  3. Drag and drop the Loqate connector to the workflow palette.

    11

  4. Double click the Loqate connector icon in workflow pallet to configure the action.

  5. In the action configuration screen, select ValidateAPhoneNumber action from the list.

  6. Connect to Loqate by clicking the + icon to add a new account or select an existing account.

    For more information on how to create Loqate account, check the following article.
    Configuring Loqate account in webMethods.io Integration Workflow - Knowledge base - Software AG Tech Community & Forums

  7. In the next wizard, provide input for ValidateAPhoneNumber action.

    14

  8. Click Next, Test the action and Finish.

  9. Configure the condition to switch the execution flow based on the ValidateAPhoneNumber output.
    Success: Create the account in Salesforce.
    Failure: Log the error message using Logger application.

  10. Follow below steps to configure success flow

    a) Drag and drop Salesforce CRM application into workflow palette.

    b) Connect Loqate application to Salesforce CRM, click on the same line and select Settings option.

    15

    c) Click Add condition followed by Add Filter, configure the condition as in below snapshot and Click Done.

    16

    d) Double click the Salesforce CRM connector to configure Create Accounts action in Salesforce.

    e) Connect to Salesforce by clicking the + icon to add a new account or select an existing account.
    For more information on how to create account

    f) Click Next, followed by + to add an account in the input array.

    7

    g) Provide the input for the Create Accounts action.

    h) Click Next, Test the action and Finish.

  11. Follow below steps to configure failure flow.

    a) Drag and drop Logger application into workflow palette.

    b) Connect Loqate application to Logger, click the same line and select Settings.

    8

    c) Click Add condition followed by Add Filter, configure the condition as in below snapshot and Click Done.

    9

    d) Double click the Logger to set the failure message.

    e) Click Next and set the error message.

    10

    f) Click Next, Test the action and Finish.

  12. Save the workflow. A fully configured workflow will look like below.

    19

  13. Execute the workflow and verify the output.

    20