Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Need help with salesforce data action

    Posted 05-28-2018 22:57
    Hello All,

    I am working on salesforce data action requirement to validate contact phone number in salesforce. The data action used 'Get Contacts by Phone Number' is not recognizing the phone number and failing in the call flow. I am adding condition in the decision loop for First Name or contact Id but don't see the call flow working.

    The data action when tested alone works and response is sent in pure cloud. Screenshots of data action and call flows,



    ------------------------------
    Ashveej Shivashankar
    Gusto
    ------------------------------


  • 2.  RE: Need help with salesforce data action

    GENESYS
    Posted 05-29-2018 09:02

    Ashveej,

    What's happening is that call.ani returns "tel: +1234567890", which is the string that gets sent to Salesforce by the data action.  Unless your phone numbers are stored in Salesforce with the "tel:" at the front, this isn't likely to produce a match.  

    You'll want to do something like: ToPhoneNumber(Call.Ani).subscriberNumber

    This will send only the subscriber number from the inbound caller as part of the data action.  

    Note that this could also produce some interesting results if the subscriber number value is not set, and you'll want to account for that or the flow could take the default error handling path.  Something like this should handle that scenario:

    If (IsSet(ToPhoneNumber(Call.Ani)) and ToPhoneNumber(Call.Ani).isTel, ToPhoneNumber(Call.Ani).subscriberNumber, "")

    There's more info on the PhoneNumber data type here: About the phone number data type - PureCloud Resource Center





    ------------------------------
    Richard Schott
    Genesys - Employees
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources