Downloads the file data of a specified record and stores it into the variable context a new File value. Records of types ContentDocument, ContentVersion, Attachment and Document are supported. In the case of ContentDocument, data of the document's latest version is loaded.

Attributes

var


Required
Value type
EL-evaluated
Yes String
No
Defines the name of a variable that will hold the File value.
recordId

Required
Value type
EL-evaluated
Yes String
Yes
Defines the record whose file data is downloaded. The resolved String should be the ID of the record.