When a Salesforce Screen Flow contains two File Upload (`forceContent:fileUpload`) screen components on the same screen, and both components write their outputs (`contentDocIds`, `contentVersionIds`, `fileNames`) to the same variables, both components return `null` for these outputs after a file is uploaded. The upload itself succeeds, and the file is attached to the record.
This occurs on Flow API version 56 and above. Flows that run at API version 55 or lower are not affected.
This is expected platform behavior. Starting with Flow API version 56, the platform began nulling values for fields under certain hidden or duplicate-binding conditions to align with documented conditional-visibility behavior.
This article answers how to get valid contentDocIds, contentVersionIds, and fileNames outputs from two File Upload components that sit on the same Screen Flow screen.
Create two separate output variables, one set for each File Upload component. For example, use `Uploaded_DocumentIds_One` and `Uploaded_VersionIds_One` for the first component, and `Uploaded_DocumentIds_Two` and `Uploaded_VersionIds_Two` for the second component.
Assign each `forceContent:fileUpload` component's `contentDocIds`, `contentVersionIds`, and `fileNames` outputs to its own dedicated variable set. Do not reuse the same variable across both components.
Update any downstream elements, such as Decisions, Assignments, and other screens, that referenced the original shared variable. Change them to reference the correct component-specific variable instead.
005393415

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.