The email watermark enables the system to recognize incoming emails as a reply. However, when scripting, finding the email watermark is not accessible within a scoped application. On scoped applications, email.watermark returns undefined, for example, a notification or notification email script in scoped applications.
Steps to Reproduce
Create a scoped application/table.
For more information, see the product documentation topic Application tables.
Create a notification and notification email script that references the new scoped table.
For more information, see the product documentation topic Create an email notification.
Include a gs.info() statement to capture the value of email and email.watermark.
The statement returns for email something like
com.glide.notification.outbound.ScopedEmailOutbound@59cb1a <scoped app table>
email.watermark returns undefined.
Create a global script if you need to access the email watermark value.
Related Problem: PRB1236131