I have written a script to send an email out to a specific users when a task becomes available for them to complete. Is there a way to include a hyperlink to that particular task within the email, much like there is a hyperlink included when you check the "notify by email on occurrence" and an email is sent when there is a transition to a new state.
Thanks
Solved! Go to Solution.
Solved by bastien.mazeran. Go to Solution.
Hi,
Thank you for posting this great question.
This could be done by changing the email.body in your OnCreate script to use:
email.body = '<html><body><br><div style="text-align: left; padding-left: 200px"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="https://<TENANTNAME>.autodeskplm360.net/workspace#workspaceid=<WORKSPACEID>&dmsid=' + dmsID + '&tab=itemdetails">View Item Details for ' + item.descriptor.descriptor + '</a></font></br></body></html>';
Please replace <TENANTNAME> and <WORKSPACEID> with the correct values before saving your script. The dmsID value is accessible via scripting by calling the dmsID variable.
I hope this helps.
Regards,