Skip to main content
raghavendram0001
New Participant
May 5, 2021 6:48 AM UTC
Question

Original URL is not changing with respect to Environment

Hi,

I am using the rule APN_getSiteUrl, to get the environment specified URL.  But when user places cursor on the link that received in the mail, is showing original url as DEV instead of TEST.  

Can any one help on this?

In Dev:

In TEST:

But in email : 

4 replies

stefanhelzle0001
Brainy
May 5, 2021 10:38 AM UTC

How do you create the text in the email? Via a HTML template? How does the template HTML look like?

raghavendram0001
New Participant
May 5, 2021 10:50 AM UTC

Hi Stefan,

I just used Text Mode only in Send Email smart service. and added the above ER (TP_getregionAndSiteUrl) in an expression.

stefanhelzle0001
Brainy
May 5, 2021 10:52 AM UTC

OK, and the code to generate the HTML link looks like ...?

robert.shankin
Employee
May 7, 2021 2:33 PM UTC

Alternatively, if the goal is to retrieve the site URL - have you considered using an environment specific constant?
docs.appian.com/.../Application_Deployment_Guidelines.html