The CreatorCon Call for Content is officially open! Get started here.

How to give Survey link in notification as it will be used in 3 differnt instances dev,test,prod

nandini29
Tera Contributor

Hi Everyone,

I need to configure the survey notification, When a survey is created in the Development environment, its URL (survey link) is typically environment-specific. If this Dev environment survey link is hardcoded in the notification message, it will not function correctly when the notification is deployed to Test or Production environments, as each environment has its own unique survey instance and URL.

How this can be resolved can anyone suggest on this

Thanks,
Nandini

2 REPLIES 2

Marco0o1
Tera Sage

Hi @nandini29 ,

 

You dont need to specify the enverionment on the url, basically you just need to configure the <a> url on the notification:

<a href="/esc?id=take_survey&instance_id=7afce3382be036509d92ff87f291bfb4" >Survey</a>

 

It will automatically get the environment from where is send.

Sarthak Kashyap
Tera Expert

Hi @nandini29 , 

 

Please try to use from system property, where you have a property for your instance and use that system property

 

For example

 
var baseURL = gs.getProperty('glide.servlet.uri');
var link = "";
link = baseUrl + "your_survey_link";
 
Please mark my answer correct and helpful if this works for you
Thanks,
Sarthak