Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Data action DoNotCall

    Posted 12-03-2022 23:45
    Hello all, 

    I have created an API that gets the field from salesforce for "DoNotCall" it works fine, 

    I am trying to add it to a pre-rule within the outbound dialler, and if it equals true do not call it. 

    ANy idea how i can fix the below? it keeps telling me
    This output is not a supported type. Supported types are boolean, integer, number, and string.
     



    #Outbound

    ------------------------------
    Richard
    ------------------------------


  • 2.  RE: Data action DoNotCall

    Posted 12-04-2022 04:01
    Just to add this is what i put in the request and response. 

    Request: 
    /services/data/v56.0/query/?q=$esc.url("SELECT id,DoNotCall from lead WHERE id= '${input.SF_URLPop}'")


    Response: 

    {
    "translationMap": {
    "DoNotCall": "*..DoNotCall"
    },
    "translationMapDefaults": {
    "DoNotCall": "[]"
    },
    "successTemplate": "{\"DoNotCall\": ${DoNotCall}}"
    }



    I note the Available output has no boolen,  



    #DataAction #API/Integration #Rule
    ​​​

    ------------------------------
    Richard
    ------------------------------



  • 3.  RE: Data action DoNotCall
    Best Answer

    Posted 12-04-2022 15:37
    Hi Richard

    I think the problem is your Data Action output is an Array. Try changing the output contract "DoNotCall" from Array to Boolean and use following successTemplate

    "successTemplate": "{\n\"DoNotCall\": ${successTemplateUtils.firstFromArray(\"${DoNotCall}\")}}"

    I hope this will get you going.


    Cheers
    Zubair

    ------------------------------
    Muhammad Zubair Awan
    ------------------------------



  • 4.  RE: Data action DoNotCall

    Posted 12-04-2022 15:45
    Ah yes, that worked like a charm! 

    it was the array! thank you

    ------------------------------
    Richard
    ------------------------------



  • 5.  RE: Data action DoNotCall

    Posted 12-06-2022 10:17
    Do you know if this works outside of the dialer? Llke a manual call through salesforce

    ------------------------------
    LY LIM
    Cardinal Health 5, LLC
    ------------------------------



Need Help finding something?

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