Document assigned
The 'Document assigned' event is triggered, when a document reference to a data object is successfully resolved (see Documents).
Resolving the document reference is attempted when a document is created and after changes to the 'Reference' or 'Reference type' properties. In this case, the 'Referenced object', 'Reference status' and 'Description' properties of the document object are updated.
The resolved data object is provided as a data context for event handling. The Variable document contains the referenced document.
►NOTE◄ An event handler responding to 'Document assigned', may prevent the referencing of the document by an 'Abort' event action.
Example:
In the following example, the event handler responding to 'Document assigned' checks if the referenced data object is the 'Shipment' type.
For shipments, the referencing of documents sized > 500KB is aborted with a notification.