FlowAction_UploadLargeFile
This method mimics the sFiles API method, “uploadLargeFile”. It assumes that the named credential to use is to be found in the “SharePoint Object Settings” Custom Metadata type (of the objectSettingsLabel if one is specified) or the “SharePoint Settings” Custom Metadata type. The Site Id and Document Library Id are assumed to come from the SharePoint Object Settings or SharePoint Settings, but can be overriden by the siteId and documentLibraryId parameters.
Methods
global static List<FlowActionPayload_Boolean> uploadFile(List<uploadLargeFileInput> folderItems)
INVOCABLEMETHOD
Classes
uploadLargeFileInput
Fields
global AutoDelete
→ Boolean
AURAENABLED
OTHER
(Optional) Determines whether ContentVersion created when uploading file to SharePoint is automatically deleted or not; defaults to false (will not automatically delete ContentVersion upon upload).
global ColumnsToUpdate
→ List<CustomFieldItem>
AURAENABLED
OTHER
(Optional) To, set custom fields on the SharePoint file, provide a collection of fileforcem1__CustomFieldItem variables where the NAME property of each fileforcem1__CustomFieldItem is the API name of the SharePoint column and the VALUE property is the new value of the SharePoint column for every column to update.
global DestinationFolderId
→ String
AURAENABLED
INVOCABLEVARIABLE
The SharePoint Id of the folder where you want to upload the file. NOTE: This must be a valid folder within the Site and Document Library that the user has access to.
global DocumentLibraryOverrideId
→ String
AURAENABLED
OTHER
(Optional) Override the Document Library Id in the SharePoint Object Setting.
global DocumentVersionId
→ String
AURAENABLED
INVOCABLEVARIABLE
The ContentVersion Id of the file to upload.
global NewFileName
→ String
AURAENABLED
INVOCABLEVARIABLE
The file name with extension of the file to be uploaded. Be sure to make sure that no illegal characters are in the fileName.
global ObjectSettingsLabel
→ String
AURAENABLED
INVOCABLEVARIABLE
The label of the SharePoint Object Setting Custom Metadata used to complete the action.
global RecordId
→ String
AURAENABLED
OTHER
(Optional) This is the Salesforce Record ID that is associated with the file. It is used to identify the related record for the File_Uploaded__e and File_Uploaded_Community__e platform events that are published when the file is uploaded.
global ReplaceFile
→ Boolean
AURAENABLED
OTHER
(Optional) Determines whether the file uploaded will be replaced or renamed if another file with the same name exists in the folder. Defaults to false (will not replace file).
global SiteOverrideId
→ String
AURAENABLED
OTHER
(Optional) Override the Site Id set in the SharePoint Object Setting.