Legacy Dev Forum Posts

 View Only

Sign Up

Parse string for outbound script

  • 1.  Parse string for outbound script

    Posted 06-05-2025 19:09

    jlee | 2018-01-09 18:49:20 UTC | #1

    I am looking to find a way to pass a big string of text like the one below and parse sections of the string in the outbound script for our employees to greet customers a certain way, leave particular voicemails based on the number of time we have called etc. Is it possible to split and stop based on known keys?

    In the example below I would get this string from an integration action, this data gets assigned to a string variable. The idea is I could create text fields that show outgoing call and parse the string variable for all the text in the outgoingcall section.

    Purecloud Data:

    <outgoingcall></outgoingcall> <vm1></vm1> <vm2></vm2> <vm3></vm3> <vm4></vm4> <vm5></vm5> <vm6></vm6> <vm7></vm7>


    tim.smith | 2018-01-09 18:47:50 UTC | #2

    That sort of parsing is best handled by your service. Send the properties you need in a standard JSON response for your data action so you can store them directly in variables using a Data Action.


    system | 2018-02-09 18:47:57 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: 2312