Skip to main content
February 23, 2023
Question

Something about send e-mail smart service

  • February 23, 2023
  • 3 replies
  • 0 views

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 

3 replies

Inspiring
February 23, 2023

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,",
  "
" & char(10), "
" & char(10), "You have DAF approval task waiting for you. Please go to the ", "", "DAF Workflow Process", "", " all your approvals tasks are listed under ""My Task"" tab.", "
" & char(10), "
" & char(10), "Thank you,", "
" & char(10), "Sender Details" )

linp0001Author
February 23, 2023

thanks

February 24, 2023

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
)