ServiceNow add attachment action

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

Prerequisites

Ensure that you are authenticated before initiating any ServiceNow action. For more details, see ServiceNow authentication action.

Procedure

  1. From the Actions pane, select ServiceNow > Attachments > Add Attachment and place it in the canvas.
  2. Specify details in the following fields:
    1. Enter the Table name.
      Note: For ServiceNow tables, ensure that you provide the Table name instead of the Label name.
    2. 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.
    3. (Optional) You can enter a name in the New file name field.
    4. The session name displays as Default.
    5. You can assign the attachment ID to a string variable. For example, the attachment ID is saved to str_AttachmentSysId.

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