Loading
Salesforce now sends email only from verified domains. Read More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Mapping File Attachments From an Omniscript to Salesforce (Managed Package)

          Mapping File Attachments From an Omniscript to Salesforce (Managed Package)

          For the managed package runtime, after adding a file or image to an Omniscript, you can map the file from the Omniscript to a parent record in Salesforce. Follow the instructions below to accomplish this:

          Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

          Note
          Note

          File elements using the Upload to Content Document functionality cannot be mapped in Omnistudio Data Mapper. If Upload to Content Document is checked and the file is mapped in Data Mapper the file will be corrupted.

          Before You Begin

          LWC Omniscripts do not support file mapping in Data Mapper. See Add a File or Image to Omniscript (Managed Package).

          1. From the Data Mapper Load (JSON) associated with the Omniscript, add the Attachment object to the Creation Sequence.
            image
          2. Create the following mappings (where FileElement is the name of the File element on the Omniscript):
            • ContextId = Attachment.ParentId

            • fileElement:filename = Attachment.Name

            • fileElement:data = Attachment.Body

              image
              image
          3. Map an Object Id, such as the ContextId, to the Attachment.ParentId. If an object is being created in the same Data Mapper, create a Linked Mapping that maps the Id of the previously created or updated parent object to Attachment.ParentId.
          4. (Optional) To ensure that files with the same name are not overwritten, check the Upsert Key box for the Attachment:ParentId and Attachment:Name mappings.
           
          Loading
          Salesforce Help | Article