Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Agentless Email API fails to send a body with expression variable

    Posted 8 hours ago

    Hello,

    I am using a data action to send an agentless email using the agentless email api.

    The data action fails when I use a variable expression for my email body. The data action is successful when I use a variable literal for my email body.

    See the screen shot.

    My goal is to send an email with line break characters.

    Variable Task.test_email_body_expression is defined as expression "hello" + " \n " + "world".

    The email fails when I use this variable for the email body.

    Variable Task.test_email_body_literal is defined as literal hello \n world.

    The email is successful when I use this variable for the email body.

    Any suggestions how to solve this?

    thanks,

    David


    #API/Integrations
    #ArchitectandDesign
    #Outbound

    ------------------------------
    David Martinez
    Architect
    ------------------------------


  • 2.  RE: Agentless Email API fails to send a body with expression variable

    Posted 3 hours ago

    Well, after more research I solved this. I had two use two slashes.

    This works.

          append("hello ", " \\n ", "world")

    David



    ------------------------------
    David Martinez
    Architect
    ------------------------------