1. File Upload Process
When a user uploads a file in Magentrix, the platform breaks the file into smaller parts to optimize upload performance. These parts are temporarily stored in a buffer to facilitate transfer.
Once all parts are uploaded, Magentrix sends the complete file to Salesforce through an API endpoint. After the transfer is complete, the temporary parts are automatically deleted.
Depending on file size and network conditions, this cleanup process can take a few seconds or up to one minute.
2. File Storage and Metadata Synchronization in Salesforce
Once Salesforce receives the uploaded file, it automatically triggers backend processes that create or update file records and metadata in the custom object Force__MagentrixOne__File__c.
The following fields are stored and synced back to Magentrix:
Id
OwnerId
Name
CurrencyIsoCode
CreatedOn
CreatedById
ModifiedOn
ModifiedById
ContentDocumentId
ContentSize
FileExtension
IsPrivate
LinkId
ParentId
ShareType
Title
Type
VersionId
MagentrixOne__ContentType__c
MagentrixOne__LatestVersionNumber__c
MagentrixOne__ReasonForChange__c
MagentrixOne__ReferencedDate__c
MagentrixOne__Description__c
3. Salesforce Triggers Involved
The following triggers from the Magentrix Community Package handle file events during upload, update, or deletion in Salesforce:
AttachmentTrigger
ContentDeleteTrigger
ContentUpdateTrigger
FilesDeleteTrigger
FilesInsertTrigger
FilesUpdateTrigger
Related Articles