ServiceNow Add attachment action

Use the Add Attachment action to add a new attachment to the specified record in a ServiceNow Table application.

Prerequisites

Ensure that you are authenticated before initiating any ServiceNow action. For more details, see Ação de autenticação do ServiceNow.

Procedure

  1. From the Actions pane, select ServiceNow > Attachments > Add Attachment and place it in the canvas.
  2. Enter the Table name.
    Note: For ServiceNow tables, ensure that you provide the Table name instead of the Label name.
  3. Enter the Sys_id.
    To get the sys_id of any record from ServiceNow, navigate to the record you want to attach a file to. Right-click on the header of the record (the area with the record's title and other information). From the menu that appears, select the option labeled Copy Sys_ID. This will copy the record's Sys_ID to your clipboard.
  4. Select the File to be uploaded by using one of the following options:
    • Control Room file: If the file exists within the Control Room folders, select this option.
    • Desktop file: If the file exists in your local system desktop, select this option and browse the file path.
    • Variable: You can also store the file path as a variable.
    Note: Maximum size of the file to upload cannot exceed 25 MB.
  5. (Optional) You can enter a name in the New file name field.
  6. The session name displays as Default.
  7. You can assign the attachment ID to a string variable. For example, the attachment ID is saved to str_AttachmentSysId.

    ServiceNow create attachment
  8. Click Run to save and run your bot.
  9. Verify whether the attachment is added in the ServiceNow record as shown below:
    View servicenow attachment created