Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Participants Data

    Posted 06-05-2025 18:46

    AdrianRodriguezVar | 2024-09-16 14:23:19 UTC | #1

    Hi, I had configured a data action to retrive some participant attributes. I've noticed that the data action works but only with inbound calls and outbound campaings calls but with outbound manual calls isn't working.

    The endopoint that i'm calling is /api/v2/conversations/${input.conversationid}.

    And this is my configuration.

    {
      "translationMap": {
        "log-yearError": "$.participants[*].attributes.Error-Pago-Year",
        "log-CVVError": "$.participants[*].attributes.Error-Pago-CVV",
        "log-paymentId": "$.participants[*].attributes.log-paymentId",
        "log-paidAmount": "$.participants[*].attributes.log-paidAmount",
        "log-status": "$.participants[*].attributes.log-status",
        "log-monthError": "$.participants[*].attributes.Error-Pago-Month",
        "log-cardError": "$.participants[*].attributes.Error-Pago-Card"
      },
      "translationMapDefaults": {
        "log-yearError": "[]",
        "log-CVVError": "[]",
        "log-paymentId": "[]",
        "log-paidAmount": "[]",
        "log-status": "[]",
        "log-monthError": "[]",
        "log-cardError": "[]"
      },
      "successTemplate": "{\"log-status\": ${successTemplateUtils.firstFromArray(\"${log-status}\", \"${esc.quote}NOT FOUND${esc.quote}\")}, \"log-paymentId\": ${successTemplateUtils.firstFromArray(\"${log-paymentId}\", \"${esc.quote}NOT FOUND${esc.quote}\")}, \"log-paidAmount\": ${successTemplateUtils.firstFromArray(\"${log-paidAmount}\", \"${esc.quote}NOT FOUND${esc.quote}\")}, \"log-cardError\": ${successTemplateUtils.firstFromArray(\"${log-cardError}\", \"${esc.quote}NOT FOUND${esc.quote}\")}, \"log-yearError\": ${successTemplateUtils.firstFromArray(\"${log-yearError}\", \"${esc.quote}NOT FOUND${esc.quote}\")}, \"log-monthError\": ${successTemplateUtils.firstFromArray(\"${log-monthError}\", \"${esc.quote}NOT FOUND${esc.quote}\")}, \"log-CVVError\": ${successTemplateUtils.firstFromArray(\"${log-CVVError}\", \"${esc.quote}NOT FOUND${esc.quote}\")}}"
    }

    Anyone can help my?

    BR


    system | 2024-10-17 14:21:48 UTC | #2

    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: 29343