Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Assign value of specific SIP header object to variable

    Posted 08-27-2024 16:00
    No replies, thread closed.

    Hi there,

    I know there is likely a very simple solution for this, but I am struggling to figure out how to implement. I am using the Get SIP Headers action and can pull the JSON, which comes out like below. I am trying to get only the integer value (shown bolded) from a single attribute to assign to a variable so I can use that in the screen pop URL. How do I select the value of just one array object?

    {"x-inin-attr":["\"AttributeName=123456789\""]}


    #ArchitectureandDesign

    ------------------------------
    Aaron Lisker
    American Telesource, Inc.
    ------------------------------


  • 2.  RE: Assign value of specific SIP header object to variable
    Best Answer

    Posted 08-29-2024 11:09
    No replies, thread closed.

    Hello Aaron, 

    Have you tried looking into this documentation

    Im thinking that you could do something like ToJson{"x-inin-attr":["\"AttributeName=123456789\""]}.

    Im am no where near an expert in something like this, but offering up an idea. 

    Hope this helps!

    Cheers, 



    ------------------------------
    Cameron Tomlin
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Assign value of specific SIP header object to variable

    Posted 09-03-2024 13:51
    No replies, thread closed.

    Hi Cameron,

    Thanks for the suggestion. What I ended up doing:

    Substring(JsonStringify(Task.VarName),30,9)



    ------------------------------
    Aaron Lisker
    American Telesource, Inc.
    ------------------------------