Using the “EmailMessageUploadRequest” class
The dvelop_docs_dev.EmailMessageUploadRequest class defines the parameters that are used to upload an EmailMessage item from Salesforce to the DMS.
Signature
global class EmailMessageUploadRequest implements IDocumentUploadRequest
Contents
Constructors
You can create anEmailMessageUploadRequest class using the following constructor:
EmailMessageUploadRequest()
This constructor creates an EmailMessageUploadRequest without parameters.
Signature
global EmailMessageUploadRequest()
Properties
The EmailMessageUploadRequest class has the following properties:
relatedEntityId: The ID of a record in the context of which the e-mails are to be uploaded.
Data type: String
emailMessageIds: A list of IDs for the EmailMessage items to be uploaded.
Data type: List<String>
documentTypeKey: The category key to be used to save the documents in the DMS.
Data type: String
useConfigUserForUpload: Specifies whether the process is run with the service user’s credentials or those for the current logged-in user.
Warning
The useConfigUserForUpload property is obsolete and is only supported in flows. You can run the upload process with different credentials using the DocumentUploadOptions class instead.
Data type: Boolean
Default value: false