We recently hired new employees, and as part of their onboarding process, they need to upload important documents, such as ID proofs, offer letters, and signed agreements, into Salesforce.
However, we don’t want these documents to be visible or officially stored until they have been reviewed and approved by a manager.
So, I created an automated process using Salesforce Flow. When an employee uploads a document, it goes to the manager for approval. If the manager approves it, then the document gets saved and linked to the employee’s record in Salesforce.
In this tutorial, we will learn about how to create a file upload approval process using Salesforce Flow. To automate the whole process, we will do the following things in Salesforce:
- Screen Flow: User will upload a file/document.
- Approval Process: Send file manager approval (Approve/Reject).
- Record Trigger Flow: If the manager approves the file, then make it visible for other users.
File Upload Approval Process Using Salesforce Flow
Below, I will create a file upload approval process using Salesforce Flow. This will automate the file upload process and make it visible to other users once the manager approves it.
Screen Flow: Create File Upload Input Screen in Salesforce
First, we will create a screen flow that allows users to upload a file name and description, and then upload the file, which will be stored in the Upload File Request__c custom object.
Initially, the uploaded file will be private, and when the manager approves the file, it will be set as public and will be visible to other users.
Now, we will create a Screen Flow to develop the file upload screen. For that, click on the Setup. -> Home Page. -> In the Quick Find Box, Search for Flows. You will see an option under Process Automation. -> Click on Flows.
In the flows setup window, click on the button New Flow -> Start From Scratch -> select the Screen Flow -> Next.
Next, add the Screen Element to the flow canvas, and provide both a Label and the API Name. In this screen, we will take input from the user.
To add the field components to the screen, click the Component tab and add the fields you want with the File Upload component.

Now, when the user uploads a file, we will get the Content Version ID from the uploaded file. But we also need a Content Document ID to store the file in the object.
For that, we need to retrieve the content document ID from the uploaded file. To achieve this, we need to add the Get Records element and enter a Label and API Name.
In the Object field, select Content Version. From this object, we will get the content document ID.
Next, add Filter Conditions to retrieve only the content version ID that the user will upload in the previous step from the screen.
- ContentVersionID – In – Screen > Upload Files > Content Version IDs.
