Skip to main content

Download Attachment

Description

Service Now: Download Attachment plugin step downloads all attachments associated with a ServiceNow record.

Configurations

No.Field NameDescription
1Step NameName of the step. This name must be unique within a single workflow.
Connection
2Grant TypeSelect the type of grant from OAuth 2.0 or Basic Auth.

Data type: String
Mandatory: Yes

Notes:
  • Client ID, Client Secret, and Refresh Token fields are displayed when the grant type is OAuth 2.0.
  • Username and Password fields are displayed when the grant type is Basic Auth.
3ServiceNow Base URLSpecify the URL of the ServiceNow instance.

Example: https://XXXXXX.service-now.com
4Client IDSpecify the Client ID of the registered application on the ServiceNow instance.

Data type: String
Mandatory: Yes
Note: This field is available if the grant type is OAuth 2.0.
5Client SecretSpecify the Client Secret of the registered application on the ServiceNow instance.

Data type: String
Mandatory: Yes
Note: This field is available if the grant type is OAuth 2.0.
5.aCheckbox: Accept Value as variable/staticLeave the checkbox unchecked to accept the Client Secret value from a field in previous steps using a dropdown list. Enable the checkbox to make the Client Secret field appear as a textbox.
5.bClient SecretEnter the Client Secret using the widget. The Client Secret is encrypted and not stored in the .psw file. The widget supports both Text (static value or environment variable) and Combo (dropdown values from previous steps).

Mandatory: Yes

If the checkbox is enabled, this field appears as a textbox. If disabled, it appears as a dropdown.
6Refresh TokenSpecify the Refresh Token to obtain a new access token.

Data type: String
Mandatory: Yes
Note: This field is available if the grant type is OAuth 2.0.
6.aCheckbox: Accept Value as variable/staticLeave the checkbox unchecked to accept the refresh token value from a field in previous steps using a dropdown list. Enable the checkbox to make the Refresh Token field appear as a textbox.
6.bRefresh TokenEnter the Refresh Token using the widget. The Refresh Token is encrypted and not stored in the .psw file. The widget supports both Text (static value or environment variable) and Combo (dropdown values from previous steps).

Mandatory: Yes

If the checkbox is enabled, this field appears as a textbox. If disabled, it appears as a dropdown.
7UsernameUsername for authenticating the ServiceNow instance.

Data type: String
Mandatory: Yes
Note: This field is available if the grant type is Basic Auth.
8PasswordPassword for authenticating the ServiceNow instance.

Note: This field is available if the grant type is Basic Auth.
8.aCheckbox: Accept Value as variable/staticLeave the checkbox unchecked to accept the Password value from a field in previous steps using a dropdown list. Enable the checkbox to make the Password field appear as a textbox.
8.bPasswordEnter the Password using the widget. The Password is encrypted and not stored in the .psw file. The widget supports both Text (static value or environment variable) and Combo (dropdown values from previous steps).

Mandatory: Yes

If the checkbox is enabled, this field appears as a textbox. If disabled, it appears as a dropdown.
Button
9Test ConnectionClick Test Connection to verify if the connection is established.

Mandatory Fields: ServiceNow Base URL, Username, and Password.

Once the connection is established, all requisite forms and fields in the Input and Output tabs are populated.

Note: This button does not work for values sourced from previous steps, as these can only be accessed during workflow execution. Static values and environment variables are allowed. Once input and output values are populated, connection fields can be replaced with previous step fields.

Input Fields:

No.Field NameDescription
1Form NameSelect a Form name from the Form Explorer window for downloading all attachments associated with a record of this form. This field is mandatory.
2Button: GetClick Get Forms Button to open Form Explorer window with form names. Select a form name displayed or filter form names using the filter field.
3Table Sys IDThe Sys ID of the record for which associated attachments need to be downloaded. The following screenshot shows that sys_id can be copied by right clicking on SN a particular record and clicking Copy sys_id option.
4Output Folder PathSpecify a folder path where files are to be downloaded or browse for a folder using the Browse File… button. Alternatively, when the folder path is coming from an input stream, you may select the field containing the folder path from the drop down list
5Button: Browse FolderClick this button to browse for a folder to download to a Cherwell Business Object file.
6Delete Output Folder Contents before downloadingAllowed values: ‘Yes’, ‘No’. Specify Yes to delete output folder contents before downloading else Specify No.
7Add Date TimeStamp for Duplicate FilesAllowed values: ‘Yes’, ‘No’. Specify Yes to add Date TimeStamp for Duplicate Files.
8Add File To ResultAllowed values: ‘Yes’, ‘No’. Specify Yes to add the downloaded files to result set and display download link on AE otherwise else select No.