Automation
Choosing an Approach
Pliqs offers three ways to automate file handling. Start with Sync Configs, and move to Flow or Apex when you need custom logic.
|
Approach |
Best for |
Skills needed |
Where to read |
|---|---|---|---|
|
Sync Configs |
Sending every file uploaded to a record to external storage, with no build work |
Configuration |
This page, below |
|
Flow actions |
Custom file and folder steps in Record-Triggered or Screen Flows |
Flow Builder |
|
|
Apex |
Triggers, batch jobs, Lightning Web Components and other custom code |
Apex development |
Salesforce to external drive automation
Pliqs Sync Configs – custom automation script that allows for hands-off transition of files from the Salesforce platform to external drive through Pliqs.
- Base Folder is the parent folder in which the functional for the sync folder will be created
- For child Sync Config root folder is defined by the parent Config
- Record Folder Pattern is the naming formula for the newly created folders, using SF’s API names
- Remove File After Upload causes deletion of the triggering file from SF after process completion
- Create Link To File/Record Folder cause link creation for the File/Record Folder upon process trigger for its record
Uploading a file creates records for both Content Version and Content Document Link. The latter triggers a process to query all IDs for the Content Version. Upon matching with a Pliqs Sync Config it is then triggered causing a transfer to the external drive and any additional rules selected during set up.
Parent configuration for Account object:

Child configuration for Opportunity object:

With such configurations whenever a file is uploaded into an account record it is automatically transmitted to a corresponding folder created on the drive.


Creating any number of Sync Config automation rules that apply to the same Salesforce object is possible as there is no limit to the number of Sync Config records. However, of the ones that remain in an active state (Active field toggled), only the oldest applicable rule will be triggered upon file upload.
Shared Conventions
Pliqs provides 10 actions for Flow and Apex, all declared global, so they are available in subscriber orgs. They appear in the Flow action picker under the Pliqs category.
- Connection Strategy Name is required on every action. Enter the Name of an active Pliqs Connection Strategy (forvendi__PliqsConnectionStrategy__c) record; it selects the external provider and credentials.
- Is Success and Error Message are returned by every action. Actions do not raise a Flow fault on business errors, so add a Decision element on Is Success instead of relying on a fault path.
- Bulk-safe. In record-triggered Flows that process many records, Salesforce batches the calls automatically.
- Callouts. Create, Upload, Rename and Delete call the external provider. Standard Salesforce rules apply: a callout cannot follow uncommitted DML in the same transaction, so use an asynchronous path or place the action before any DML. Link and Unlink actions make no callout.
Shared Data Types
Some inputs and outputs are Apex-defined types. In Flow, create an Apex-Defined variable of the matching type, or pass the output of one Pliqs action straight into the input of another.
PliqsApiFileDTO – metadata of an external file or folder.
|
Attribute |
Type |
Description |
|---|---|---|
|
|
String |
External file or folder ID |
|
|
String |
Display name |
|
|
String |
MIME type |
|
|
Long |
Size in bytes |
|
|
Datetime |
Timestamps |
|
|
String |
URL to view the item in the provider’s interface |
|
|
String |
Download URLs |
|
|
String |
Icon references |
|
|
String |
External ID of the parent folder |
|
|
String |
External drive ID |
|
|
Boolean |
Status flags |
|
|
String |
Owner’s display name |
|
|
Boolean |
Permission flags |
PliqsApiLinkDTO – the link between a Salesforce record and an external file or folder. Rename, Delete and Unlink actions read its fileStoreId.
|
Attribute |
Type |
Description |
|---|---|---|
|
|
String |
Salesforce content IDs |
|
|
String |
External file or folder ID |
|
|
String |
External path |
|
|
String |
External drive ID |
|
|
String |
Display name |
|
|
Boolean |
Type flags |
|
|
String |
Display metadata |
|
|
String |
Provider URLs |
|
|
String |
User who created the link |
|
|
Date |
Date the link was created |
|
|
String |
Connection Strategy ID |
|
|
Boolean |
Permission flag |
PliqsApiFileWithLinkDTO – a wrapper holding fileStoreFile (PliqsApiFileDTO) and fileLink (PliqsApiLinkDTO). It is returned by PliqsApi.linkFile and PliqsApi.linkFolder.
The Link Data required by Rename, Delete and Unlink usually comes from upstream: the output of a Link action, a Pliqs component, or a stored record.

