Sync ServiceNow attachments to file storage every 5 minutes

Recipe ToolsMarketingCustomer ServiceIT Service Management

What it does

Every 5 minutes, this automation retrieves requests and attachments from ServiceNow. It downloads each attachment and stores it in file storage so the files are backed up outside ServiceNow.

Who it's for

IT teams who need to archive ServiceNow attachments automatically without manual downloads.

How teams use this

Back up ServiceNow attachments automatically

Files sync to storage every 5 minutes without someone downloading them manually. The team has a complete archive of all request attachments in one place.

Retain attachments after ServiceNow purges

When ServiceNow deletes old requests, the attachments already exist in file storage. The team keeps records that would otherwise be lost.

Filter attachments by file type or size

Add a condition to sync only certain file types or skip files above a size limit. The automation stores only the attachments the team needs.

Share archived attachments with compliance

Set up file storage access for the compliance team so they can review archived ServiceNow attachments without opening ServiceNow. Audits become faster when records are centralized.

How it works

  1. Check for attachments every 5 minutes. The automation runs on a 5-minute schedule to look for requests and attachments in ServiceNow.
  2. Retrieve requests from ServiceNow. Get Request in ServiceNow returns the list of requests so the automation knows which ones have attachments to sync.
  3. Find attachments on each request. Query Attachment in ServiceNow locates all attachments linked to the requests, then Get attachment contents retrieves the file data.
  4. Store files in file storage. Create file in file storage saves each attachment so it persists in a central location outside ServiceNow for long-term retention.