Salesforce Fact #997 | Create Sobject record and upload files in one go in Omnistudio
Suppose we have a requirement in Omnistudio where the user needs to enter some data in the Omniscript to create an Sobject record and also would upload one or more files to attach to the same record.
For file input, there is a Content Parent ID attribute which can be populated, but in this case the parent record is not created yet.
In order to achieve this, we can create a Data Raptor Load to create the Sobject record and then using Linked mapping we can map the LinkedEntityId and the ContentDocumentIds can be passed from the JSON node.
In this example, the user creates an account record and at the same time, uploads and attaches one or multiple files to the created record.
Attached are the screenshots.



Comments
Post a Comment