How to give Survey link in notification as it will be used in 3 differnt instances dev,test,prod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
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";