Something about send e-mail smart service

Hi there,

One question here

I have a URL need to be insert into email body. This URL will be different between DEV site and PROD site. I am trying to define a constant for this URL. but dont know how to insert it into email body, as "insert web link" does not accept constant. tried use using safelink in "Insert an expression". not good.

Could anyone let me know how to do it?

regards,

Lin 

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer

    Hi 

    Create an expression rule for email body and call your expression rule in email body section using expression editior.

    For your environment specific URL Create a environment specific constant of type text and  call that constant in your expression.

    concat(
      "Hi There,",
      "<br>" & char(10),
      "<br>" & char(10),
      "You have DAF approval task waiting for you. Please go to the ",
      "<a href=",
      /*Call your constant URL here - ex: cons!DAF_APPROVAL_TASK_URL */
      "https://www.google.com/",
      ">",
      "DAF Workflow Process",
      "</a>",
      " all your approvals tasks are listed under ""My Task"" tab.",
      "<br>" & char(10),
      "<br>" & char(10),
      "Thank you,",
      "<br>" & char(10),
      "Sender Details"
    )

       

  • 0
    Certified Senior Developer

    You will try like below code. I make a dynamic link in my application. I used here record type link. You can change as like your choice. I hope it will help you

    a!localVariables(
      local!recordRef: tostring(
        a!recordLink(
          recordType: 'recordType!{2807e918-8a87-4696-913f-2cec0198b9bc}KBS OrderInCart',
          identifier: ri!journeyId,
    
        ).@attributes.@anyAttribute._recordRef
      ),
      local!recordLink: concat(
        cons!KBS_CART_REMINDER_LINK,
        local!recordRef,
        "/view/summary"
      ),
      local!recordLink
    )