Flow Actions
Doc Management Flow Actions

Get Attachments

introduction the cloudfiles get attachments flow action allows you to retrieve all the resource docid\ mr7u7qdhigoasucpf nlr (files or folders) connected to a salesforce record through cloudfiles these linked resources, referred to as "attachments" can be connected using the create attachment docid\ k qcqnduqsbbky169pk9u action or are connected manually to a salesforce record via cloudfiles widget this action can be used to fetch a collection of these attachments in a salesforce flow this is particularly useful when managing multiple resources connected to a single record note if a record has only one connected folder, and you want to retrieve its details, it is more efficient to use the get connected folder docid iq8rljf2ne8sx0 iuu action instead what this action does the get attachments action takes salesforce record id as an input and outputs a collection of all attachments linked to that record each attachment includes metadata details of the connected resources, enabling advanced flow configurations and automations example use case an account record has multiple attachments linked via cloudfiles you can use the get attachments action to retrieve all these attachments this collection can then be used for further processing, such as deleting all attachments related to a lead , identified by a specific naming convention like "lead" in their terms archiving or moving these resources to another location based on workflow triggers input parameters parent id the salesforce record id for which attachments need to be retrieved output parameters the apex action outputs apex defined attachment docid 7vdkfats tonll2jilgsg collection each attachment in the collection, record id the salesforce record id resource docid\ mr7u7qdhigoasucpf nlr properties resource id external id of the resource name name of the attached resource path the path of the resource in external storage type type of the resource ("file" or "folder") library external storage service used drive id relevant for google drive or sharepoint