Loading
Salesforce now sends email only from verified domains. Read More
Insurance
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
          InsTrailingDocumentService:uploadContentDocuments

          InsTrailingDocumentService:uploadContentDocuments

          Add this service as remote properties within File and Image inputs to upload documents that satisfy requirements set up as placeholders for specific objects.

          Class: InsTrailingDocumentService

          Method: uploadContentDocuments

          This service is supported on the following objects:

          • Quote

          • Policy (asset)

          • Claim

          • Contract

          • Case

          How It Works

          1. Takes the document(s) uploaded by the user.

          2. Reads the list of content Ids uploaded in the OmniScript. The OmniScript creates an input JSON that includes the filename and size of the uploaded document(s).

          3. Finds the placeholder record with the same categoryName the user entered in the OmniScript. If the service doesn't find a placeholder record, it creates one with that categoryName and creates a content document link with that placeholder record.

          4. Return the trailing document placeholder Ids and a list of content document link Ids created under the placeholder.

          Remote Options

          Option

          Description

          objectId

          The Id of the object that the trailing documents will attach to.

          categoryName

          The name of the folder in the file hierarchy where this trailing file will be stored.

          Input JSON

          This service gets an input JSON created by the OmniScript.

          In this example, the input JSON includes the filename and file size. The name of the record array is the vlcFileKey, which pulls the name of the input object. The vlcFileKey = damageImages, which is the name of the Input component in a sample OmniScript.

          {
          	"damageImages": [{
          		"filename": "accidentphoto1.jpg",
          		"size": 77337,
          		"data": "753039b5-d626-4413-8ad3-b0a7b06855b0"
          	}]
          }

          Output JSON

          The service returns Ids content document links and the trailing document placeholder (requirements for the documents). You can use these Ids to locate these documents in Vlocity.

          
          {
          	"result": {
          		"contentDocLinkIds": [
          			"06Af4000004SBL1EAO"
          		],
          		"trailingDocPlaceholderId": "a51f4000000XocEAAS"
          	},
          	"error": "OK"
          }      
          

          Examples

          The service is typically used for policies, claims, and other flows when a user is likely to need to upload supporting documents to a trailing document placeholder Id. To see a working example of this service, download this item into your org:

           
          Loading
          Salesforce Help | Article