Connectors
...
Actions
Get Attachment Metadata
6 min
description retrieve metadata for attachments in servicenow, with the ability to filter results using 'sysparm query' endpoint url api/now/attachment method get inputs parameters (object) sysparm query (string) – required encoded query queries for the attachment api are relative to the attachments \[sys attachment] table output example \[ { "status code" 200, "response headers" { "server timing" "sem wait;dur=0, sesh wait;dur=0", "content encoding" "gzip", "x is logged in" "true", "x transaction id" "09ee25ec974f", "x total count" "2", "x content type options" "nosniff", "pragma" "no store,no cache", "cache control" "no cache,no store,must revalidate,max age= 1", "expires" "0", "content type" "application/json;charset=utf 8", "transfer encoding" "chunked", "date" "sat, 05 nov 2022 16 24 03 gmt", "keep alive" "timeout=20", "connection" "keep alive", "server" "servicenow", "set cookie" "glide user=; max age=0; expires=thu, 01 jan 1970 00 00 10 gmt; path=/; httponly; samesite=none; secure, glide user session=; max age=0; expires=thu, 01 jan 1970 00 00 10 gmt; path=/; httponly; samesite=none; secure, glide user route=glide f6d1c4085a807931391acf9b7192b09e; max age=2147483647; expires=thu, 23 nov 2090 19 38 10 gmt; path=/; httponly; samesite=none; secure, glide session store=4deee160978f111084d57e121153af4c; max age=1800; expires=sat, 05 nov 2022 16 54 03 gmt; path=/; httponly; samesite=none; secure", "strict transport security" "max age=63072000; includesubdomains" }, "reason" "ok", "json body" { "result" \[ { "size bytes" "5881", "file name" "test", "sys mod count" "1", "average image color" "", "image width" "", "sys updated on" "2022 11 05 00 53 44", "sys tags" "", "table name" "incident", "sys id" "41f9dad09783111084d57e121153af94", "image height" "", "sys updated by" "system", "download link" "https //dev130168 service now\ com/api/now/attachment/41f9dad09783111084d57e121153af94/file", "content type" "application/json", "sys created on" "2022 11 05 00 53 43", "size compressed" "4343", "compressed" "true", "state" "available", "table sys id" "1c741bd70b2322007518478d83673af3", "chunk size bytes" "700000", "hash" "8671fa6613cd1c6e82c0e1d6b940ae0771d1d8b3f56019f8274ed501407ffc2a", "sys created by" "admin" }, { "size bytes" "5896", "file name" "test", "sys mod count" "1", "average image color" "", "image width" "", "sys updated on" "2022 11 05 00 53 07", "sys tags" "", "table name" "incident", "sys id" "d4d91e549783111084d57e121153afe3", "image height" "", "sys updated by" "system", "download link" "https //dev130168 service now\ com/api/now/attachment/d4d91e549783111084d57e121153afe3/file", "content type" "application/json", "sys created on" "2022 11 05 00 53 06", "size compressed" "4358", "compressed" "true", "state" "available", "table sys id" "1c741bd70b2322007518478d83673af3", "chunk size bytes" "700000", "hash" "11164d45817f810e70d5f84051523ef0cb12818774fc742d31cfaa158ebe747c", "sys created by" "admin" } ] } } ] output parameters status code (number) reason (string) json body (object) result (array) response headers header type server timing string content encoding string x is logged in string x transaction id string x total count string x content type options string pragma string cache control string expires string content type string transfer encoding string date string keep alive string connection string server string set cookie string strict transport security string