Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Transform contract outputs

    Posted 04-01-2025 16:56
    No replies, thread closed.

    Hello!

    I set a data action that returns a list of objects, which one of the objects will return a proper "lineOfBusinessName".

    I'm don't know the number of objects for every input, so I decided to concat the list of lineOfBusinessName in a string on the translationMap, but since I can't use the join function, I used concat that returns all together, without a separator. How can I solve this using any separator like a comma or a pipe between each item on the string lineOfBusinessNames?

    Here's the configuration:

    {
      "translationMap": {
        "lineOfBusinessNames": "concat($[*].lineOfBusinessName)",
        "errorMessage": "$.errors[0].Message"
      },
      "translationMapDefaults": {
        "errorMessage": ""
      },
      "successTemplate": "{ \"lineOfBusinessNames\": ${lineOfBusinessNames}, \"errorMessage\": \"${errorMessage}\" }"
    }

    #API/Integrations

    ------------------------------
    Samara Silva
    ------------------------------


  • 2.  RE: Transform contract outputs
    Best Answer

    Posted 04-02-2025 09:41
    No replies, thread closed.

    Hi Samara,

    I would recommend asking this question in the Genesys Cloud - Developer Community, I think they will be better placed to help resolve this query



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Transform contract outputs

    Posted 04-03-2025 04:05
    No replies, thread closed.

    Did you try 

    "lineOfBusinessNames": "concat($[*].lineOfBusinessName,\" - \")"

    not sure if that will just put the - at the end or delimit the list....



    ------------------------------
    Kevin Young
    ------------------------------