- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2025 06:47 PM
Hi Folks,
We have an email approval button which is being used for all the kind of approval tasks notifications, so if the approver wants they can approve the particular task by clicking on that button and it will give a new email with the subject RE: approve CHGxxxxxx along with the reference message id.
However, it is not working for the Standard change Proposal tickets as when we are clicking on the button it takes us to the new mail with subject "RE: approve undefined", instead of putting the STDxxxxxx number.
Note: the notification for proposal is being configured on the Standard change proposal table
Below is the email script we are using :
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2025 07:06 PM
Firstly, you should configure your notification in the Approval (sysapprover_approval) table, not in the Standard Change Proposal table.
If you make this change, your email script will work as expected.
The reason it's currently showing "undefined" instead of the Standard Proposal number is because the notification record is configured in the Standard Change Proposal table. As a result, the current object refers to the Standard Change Proposal record, not the approval record. So, try the below script and see..
var subjectTxt = encodeURI('RE: approve ' + current.number);
Regards
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2025 07:06 PM
Firstly, you should configure your notification in the Approval (sysapprover_approval) table, not in the Standard Change Proposal table.
If you make this change, your email script will work as expected.
The reason it's currently showing "undefined" instead of the Standard Proposal number is because the notification record is configured in the Standard Change Proposal table. As a result, the current object refers to the Standard Change Proposal record, not the approval record. So, try the below script and see..
var subjectTxt = encodeURI('RE: approve ' + current.number);
Regards
Siva