Newer Version Available
Creating and Importing Documents
You can integrate a fax system with Health Cloud's Intelligent Document Automation
features by creating and importing documents programmatically.
To bring a new document into Health Cloud from an external source, such as a fax system, create a Content Document record and a Received Document record and link them together with a Content Document Link record.
Health Cloud supports the PDF, JPG, JPEG, and PNG file types.
-
Make sure your users have access to the Intelligent Document Automation features.
See Set Up Intelligent Document Automation Users for the user setup requirements.
-
Create a Content Document record.
See Inserting a New Document in the Salesforce REST API Developer Guide for instructions.This gives you a Content Document ID.
-
Create a Received Document record.
See ReceivedDocument in the Health Cloud Developer Guide for details.
For the Name field, use the name of the uploaded content document.
- If you have the Intelligent Form Reader license, keep Disable Auto OCR = false (unchecked).
- Keep Active = true (checked).
This gives you a Received Document ID. -
Create a Content Document Link record to join these two IDs, with the sharing mode to
I (inferred).
See ContentDocumentLink in the Salesforce SOAP API Developer Guide for details.
To optimize the operation, consider these alternative approaches:
- You can use the Composite API to combine steps 2 and 3.
- If the content document is under 35 MB, you can use the Composite API to combine all three steps.