---
sourceDocument: Yokohama Build workflows
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/build-workflows

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# Get Attachments on Record action

# Get Attachments on Record action {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Access 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.

## Roles and availability {#get-attachments-rec__section_l52_nmm_g3b}

Available 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.

## Inputs {#get-attachments-rec__section_in1_pmm_g3b}

Provide 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.  

File name
:   Data type: String

    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.

Source Record
:   Data type: Document ID

    Record that you want to get attachments for. Typically this input uses a data pill from the data panel.

## Outputs {#get-attachments-rec__section_f2r_r4x_jyb}

These outputs appear in the Data panel. You can use them as inputs elsewhere in your flow.

Attachment List
:   Data type: Records

    Sys ID values of Attachment records found.

Count
:   Data type: Integer

Number of attachment records.  

## Get attachments from an incident record {#get-attachments-rec__example_evk_2v3_cbc}

Figure 1. Inputs used for Get attachments on record

This example illustrates getting all attachments from an incident record. Leaving the File name input empty returns all attachment records.  
Figure 2. Execution details for get attachment on record

In this example, the incident record contained two attachments.

