Loading

Screen Flow File Upload Component Returns Null contentDocIds and contentVersionIds When Two File Upload Components Share the Same Screen and Output Variables in Salesforce

Fecha de publicación: Oct 8, 2026
Descripción

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.

Solución

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 Separate Output Variables for Each File Upload Component

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 Downstream Flow Elements

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.

Número del artículo de conocimiento

005393415

 
Cargando
Salesforce Help | Article