Legacy Dev Forum Posts

 View Only

Sign Up

Input variable substring in Data Action

  • 1.  Input variable substring in Data Action

    Posted 06-05-2025 18:45

    Cyathogoku | 2023-12-20 10:40:06 UTC | #1

    Hi Everyone,

    We need to use /api/v2/conversations/messages/agentless genesys cloud endpoint to send a whatsapp

    However customer provided the number in e.164 format and whatsapp only accept e.164 without + sign.

    We received phone number into calling list, then we can modify the phone number into architect or using other method.

    The only way i see is using the java class ReplaceFirst, but i tried but it doesn't work.

    We need to sustract + sign for p_toAddress input variable.

    Here you are the json request configuration.

    { "requestUrlTemplate": "/api/v2/conversations/messages/agentless", "requestType": "POST", "headers": { "Content-Type": "application/json" }, "requestTemplate": "{\n \"fromAddress\": \"f8ac5175-92fb-4468-92ad-af5e084ea365\",\n \"toAddress\": \"${input.ptoAddress}\",\n \"toAddressMessengerType\": \"whatsapp\",\n \"textBody\": \"\",\n \"messagingTemplate\": {\n \"responseId\": \"70e72153-e86e-458e-b3ac-b44aeda0f367\",\n \"parameters\": [\n {\n \"id\": \"AGENTNAME\",\n \"value\": \"Evolutio\"\n }\n ]\n },\n \"useExistingActiveConversation\": true\n}" }

    Could someone help us with this, please?

    Thanks in advance.


    Cyathogoku | 2023-12-20 12:59:56 UTC | #2

    Hi Everyone,

    I could able to fix the issue.

    Regards


    system | 2024-01-20 13:00:18 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 23791