UserEventType.EMAIL is a possible event in a befor...
# general
w
UserEventType.EMAIL is a possible event in a beforeLoad of a UserEvent script. Logging the events on a transaction, I can see the logs of view, create, edit, copy, print and quick view, but not when I send an email from the transaction. Does anybody experienced the same?
k
Don't think that has ever been a UserEventType.
m
You can deploy user event scripts to Message record
w
@michoel, sending an email from a transaction, does indeed create a message record. Thx for the suggestion. However, I was actually looking to modify the form in the beforeLoad during a UserEventType.EMAIL, like I do for a UserEventType.PRINT. If add custom field to the form during the printing of the transaction and display them on the advanced pdf. When emailing, the UserEventType.EMAIL is not triggered. Feels like a bug.
k
Why not just add a normal ui field and hide it on the form?
w
If that’s my only option, I’ll have to. But as I only need the data when I generate the PDF, I would have preferred not to store it in a custom field. Still UserEventType.EMAIL is never triggered in any condition. The purpose of my question was to find out if someone would know when it would be triggered, to find out if I was missing something.
k
Honestly I don't even think there is a user event type for email. The only option I have ever been able to use for a field value is storing in a custom field.