Restrictions on Invoking Functions in Certain PeopleCode Events
Because AddAttachment, DetachAttachment, MAddAttachment, and ViewAttachment are interactive, they are known as “think-time” functions. This means that these functions should not be used in any of the following PeopleCode events:
-
SavePreChange
-
SavePostChange
-
Workflow
-
RowSelect
-
Any PeopleCode event that initiates as a result of a Select or SelectNew method, or any of the ScrollSelect functions.
If you want to transfer files in a non-interactive mode with functions that aren't think-time functions, see GetAttachment and PutAttachment.