Skip to main content

Attach file

Attach a local file to a record.

Command in the ServiceNow toolkit · id ooa.servicenow/attach_file · 10 inputs (3 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Instance address (URL)StringNoInstance URL, e.g. https://yourcompany.service-now.com.
TableStringYesTable name.
Record sys_idStringYesRecord sys_id.
PathFileYesFile to attach.
UserStringNoUser name.
PasswordCredentialNoPassword from the vault.
Access tokenCredentialNoOAuth token from the vault.
File nameStringNoName to give the attachment; the local file name when empty.
Content typeStringNoContent type; guessed from the file when empty.
API versionStringNoVersion of the ServiceNow REST API to call: v1, v2, or latest (the instance's current one) when empty (G6).

Outputs​

OutputTypeWhat it is
attachment_idStringAttachment sys_id.