Prerequisites: A Workflow with an earlier step that produces a file, and a connected Salesforce account whose user can access the record and create files.
1
Add the Upload File to Record action
While editing a Workflow, click the + button between existing steps. Select Upload File to Record from the Salesforce actions to add it to your Workflow.

2
Connect your Salesforce account
If you haven’t already, connect your Salesforce account to Cassidy. See Connect Salesforce for details.

3
Select the object type
Use the Object Type dropdown to choose the kind of record you’re attaching the file to, such as Account, Contact, Opportunity, Lead, Case, or a custom object.

4
Enter the record ID
In Record ID, enter the ID of the record to attach the file to. Salesforce record IDs are 15 or 18 characters long.

5
Select the file
In File, choose the file variable to upload from a previous step. Files can be up to 500MB.This action uploads one file per run. If a variable contains several files, use a loop to upload each one.

6
Set a title and description (optional)
In Title (Optional), enter the name the file should have in Salesforce. If you leave it empty, Cassidy uses the original file name. A title can be up to 255 characters.In Description (Optional), add a note that appears with the file in Salesforce.

Output variables
Later steps in your Workflow can use these values.Troubleshooting
The action says it can't upload the file to the record
The action says it can't upload the file to the record
Why this happens: The Salesforce user connected to Cassidy may not have access to the record, may not be allowed to create files, or the record ID may not match the selected object type.Fix: Check that the record ID is correct and that Object Type matches the record. Then confirm the connected Salesforce user can open the record and add files to it in Salesforce.
The action says the file is too large
The action says the file is too large
Why this happens: Files over 500MB can’t be uploaded.Fix: Use a smaller file or split it into several files, then upload each with a loop.
The file uploaded but I can't see it on the record
The file uploaded but I can't see it on the record
Why this happens: The Files section may not be on the record’s page layout, or your Salesforce user may not have permission to see the file.Fix: Open the record in Salesforce and check the Files related list. Ask your Salesforce admin to add it to the page layout if it’s missing.