I build a screen flow to upload a file to an oppty, using the fileUpload component enter image description here

It works great when testing the flow itself, but when adding to a lighting page, the Upload file button is disabled

enter image description here

If I add a test data assignment as follow: enter image description here

The upload file is enabled: enter image description here

Note: the recordId is set as follow enter image description here

Any ideas?

1 Answer 1


If you have at least read access to the record, then the file upload component will be enabled. Looking at the fact that while hard coding the ID in test data, you are able to upload a file, it seems that when you are actually running the flow, your recordId is not being populated.

Related Record ID - Required. ID of the record to associate the files with. If no value is passed, the component is disabled.

It depends on where you have added the flow. If you are putting this flow on a record page and have enabled the recordId as an input variable, a checkbox "Pass record Id in to this variable" should appear below in the design configuration panel.

If you have done that as well, then it is likely an issue with one of the steps in the flow.

Add recordId

  • oops - Pass record Id in to this variable - Not checked on record page - Works
    – Saariko
    Mar 12, 2020 at 20:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .