{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4208,"path":"build-workflows/workflow-studio/get-attachments-rec.md","title":"Get Attachments on Record action","bundle":null,"doc_type":null,"release":"australia","body":"\n# Get Attachments on Record action\n\nAccess the list and count of the attachments associated with the provided source record as data pills in a flow. Use flow logic or scripting to process each attachment in the list of the attachments that the action returns.\n\n## Roles and availability\n\nAvailable as a Workflow Studio ServiceNow core action. Users with the flow\\_designer or admin role can add an action to a flow and define configuration details.\n\n## Inputs\n\nProvide a value for each input that your flow needs. To add dynamic values, you can also drag and drop pills from the Data panel or select them from the pill picker.\n\n-   **File name**\n\n    Data type: **String**\n\n    Search string containing a partial or entire file name of an attachment file. You can use this input as a query filter to find one or more attachments that have the listed file name. If you leave this input empty, the action returns all attachments associated with the source record.\n\n-   **Source Record**\n\n    Data type: **Document ID**\n\n    Record that you want to get attachments for. Typically this input uses a data pill from the data panel.\n\n\n## Outputs\n\nThese outputs appear in the Data panel. You can use them as inputs elsewhere in your flow.\n\n-   **Attachment List**\n\n    Data type: **Records**\n\n    Sys ID values of Attachment records found.\n\n-   **Count**\n\n    Data type: **Integer**\n\n    Number of attachment records.\n\n\n## Get attachments from an incident record\n\n\\[Omitted image \"get-attachments-on-record.png\"\\] Alt text: Flow with a create record trigger that runs the Get attachments on record action\n\nThis example illustrates getting all attachments from an incident record. Leaving the File name input empty returns all attachment records.\n\n\\[Omitted image \"get-attachments-on-record-execution-details.png\"\\] Alt text: Execution details of getting attachments from an incident record\n\nIn this example, the incident record contained two attachments.\n\n**Parent Topic:**[Workflow Studio actions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/flow-actions.md)\n\n"}}