The RelayPullAttachmentAction, is used to pull a Relay Power-up file attachment submission (e.g. images, files). Once downloaded, the action will automatically create a new Salesforce ContentDocument and link it to the object specified by the Linked Entity Id property.
This flow action is always executed in a background job. If an error occurs during the attachment download, a record will be created in the RelayLog__c custom object.
Action Properties
Field | Description |
---|---|
RelayPowerups__c event | A Relay power-up event record with the Name field value of Powerups Data Artifact Available. Typically, this is the record that triggered the flow. This event record contains specific details about the file attachment. |
Description | A description of the file attachment. This will populated on the created ContentDocument record. |
DocumentLink Share Type | The permission granted to the user of the shared file in a library. This is determined by the permission the user already has in the library. If this field is not provided, then the value of V will be used. Valid values are:
See Salesforce docs: ContentDocumentLink |
Document Link Visibility | Specifies whether this file is available to all users, internal users, or shared users. If this field is not provided, then the default value of AllUsers will be used. Valid values are:
See Salesforce docs: ContentDocumentLink |
Linked Entity Id | Required. This field identifies the Salesforce entity (record) that will be linked to the ContentDocument. For example, this could be the Id field of a Person Account object. See Salesforce docs: ContentDocumentLink |
Action Property Dialog
Action Response Variable
This action returns a custom Relay object RelayPullAttachmentAction.PullAttachmentResponse.
Field | Description |
---|---|
statusCode | Valid values are:
|
statusMessage | A description related to the returned statusCode. |