SharePoint Online - Get item attachment by name

The SharePoint Online - Get item attachment by name actionA tool for building the processes, logic, and direction within workflows. retrieves a specified attachment from a collection variable containing all attachment names for a given list item.

This action can be used with the SharePoint Online - Get attachment names action.

Before you start 

Configure the SharePoint Online - Get item attachment by name action

The steps required to configure the action are given below. The SharePoint Online - Get item attachment by name action fields and settings table describes all the required and optional configuration fields.

Important: Before inserting variables in the action configuration, you must manually type or select the values and populate other dependent fields in order to retrieve the output data. Once configured, you can insert variables to the required fields.

  1. Select a SharePoint Online connection.

    Note: Only the connections created with the List and libraries authentication method are available in the drop-down. For more information about authentication methods for SharePoint Online connections, see Connectors.

  2. Type a SharePoint site URL and click Retrieve lists.
  3. Example:https://domain.sharepoint.com/sites/hr

  1. Select the List name that contains the item with the attachment that you want to retrieve.
  2. For Item ID, specify the ID of the list item that you want to retrieve the attachment from.
  3. For more information about Item ID, see How do I find the item ID in the SharePoint Online list? .

For more information on the fields and buttons, see SharePoint Online - Get item attachment by name action fields and settings.

Retrieve attachments from a list item

The following actions can be used together to retrieve attachments from a list item as described in the steps below:

In the Designer page: 

SharePoint Online - Get item attachment by name action fields and settings

Important: Before inserting variables in the action configuration, you must manually type or select the values and populate other dependent fields in order to retrieve the output data. Once configured, you can insert variables to the required fields.

Section Field Description Variable types
(unlabeled)

ConnectionCredentials and other settings required to pass data between the workflow and the indicated service, which could be a cloud service, business application, or content store.

SharePoint Online connection for the list containing the item with attachments that you want to retrieve.

To refresh the available connections, click .

(n/a)
Source attachment

SharePoint site URL

The URL of the SharePoint Online site containing the list you want to use.

To retrieve the lists from the SharePoint site, type the SharePoint site URL and click Retrieve lists.

Example: https://domain.sharepoint.com/sites/hr

Boolean, Collection, DateTime, Decimal, Integer, Text

 

List name

The name of the list containing the list item with the attachments you want to retrieve. Accepts a selection from the drop-down list.

The drop-down list is limited to lists within the site specified in SharePoint site URL.

Boolean, Collection, DateTime, Decimal, Integer, Text

 

Item ID

The ID of the list item from which you want to retrieve the attachments.

Integer

 

Attachment name

The name of the attachment. Accepts any combination of typed text and inserted variables.

Boolean, Collection, DateTime, Decimal, Integer, Text

 
Output

Result

File variable to store the output from the action.

File