Email Script used in the notification mail is not workings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2024 09:17 PM - edited ‎06-05-2024 10:59 PM
In my CD app there is a reminder notification that is being sent out via daily scheduled job to the approver to approver pending records. Notification is working fine. However, the link in the notification mail which takes to the approver to the pending records is not working after go live. How can I fix this? What could possibly go wrong? Here is the body of the mail
and here is the email script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2024 11:29 PM
Are you really using an email script with spaces in the name?
And did this script work on pre-prod?
What is the output you do get?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2024 03:02 AM
Yes it was working in Dev instance. Here is the notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2024 03:19 AM
Hi @Sami02agrawal ,
Can you please take a look into the URL of the notification. Basically right click on the link in the email and copy and past it in a notepad and check the URL.
I suspect its not able to construct link properly.
Additionally please replace the code for the batchLink with the below one-
var batchLink = "<a href='https://" + gs.getProperty("instance_url") + "/x_snc_test_run_b_0_npi_approval_tracker_list.do?sysparm_query=batch_folder_name=" + tableData[i].batch_name.toString() + "'>" + tableData[i].batch_name.toString() + "</a>";
Validate the system property instance_url
If my response has resolved your query, please consider giving it a thumbs up ‌‌ and marking it as the correct answer‌‌!
Thanks & Regards,
Sanjay Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2024 03:28 AM
This is the link I can see.
\x_snc_test_run_b_0_npi_approval_tracker_list.do?sysparm_query=batch_folder_name=24 03 Enterprise-Premier Support Account Management v2