Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Use the GetAttachmentsMetadata component

Get the metadata of all attachments that are associated with a ServiceNow table record by using the GetAttachmentsMetadata component in the RPA Desktop Design Studio.

Before you begin

You must have access to the ServiceNow table that contains attachments.

Role required: none

About this task

The maximum size of the attachments is 1024 MB.

You can configure the properties for the GetAttachmentsMetadata component. For more information about these properties, see Properties of the Attachment components.

Procedure

  1. In the Toolbox pane, navigate to ServiceNow > Attachments.

  2. Drag the GetAttachmentsMetadata component to the Design surface.

  3. To configure the input fields, see Configure port properties.

  4. Connect the data and control ports of the GetAttachmentsMetadata component to the corresponding ports of the other components.

Port namePurpose of connectionData Port typeData type
SysIDThe sys ID of the record that has the attachment. You can pass this value from a previously executed component.You can get the sys ID of a record following these steps: 1. Select the record in the connected ServiceNow instance and right-click the header bar. 2. Select Copy URL. 3. In the URL, you can find the sys ID after the parameter sys\_id=. For example, 9d385017c611228701d22104cc95c371.Data InString
tableNameThe name of the table that has the record with the attachments. You can pass this value from a previously executed component.Data InString
ReturnReturns the metadata of the attachments and passes to the next component.Data OutObject
  1. To test the component, under the DESIGN tab, click Run.

Parent Topic:Attachments