1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ServiceNow - csv,xlsxエクスポート

Posted at

ServiceNowから次のようなURIでCSV及びxlsxファイルをダウンロードできます。

https://<インスタンス名>.service-now.com/<テーブル名>_list.do?<形式>

対応している形式:CSV,XLSX,XML,PDF,JSON (すべて大文字で指定する)
例:
https://<インスタンス名>.service-now.com/sys_user_list.do?CSV

本記事ではURIに指定できるパラメータを説明します。

パラメータ

No. パラメータ
1 sysparam_query クエリー sysparm_query=serial_numberISNOTEMPTY
2 sysparm_orderby ソートする列 sysparm_orderby=serial_number
3 sysparm_fields 取得する列 sysparm_fields=name,email
4 sysparm_display_value true:表示される値、false:sys_id、all:両方 true:ACME South America、false:227cdfb03710200044e0bfc8bcbe5d6b
5 sysparm_export_column_header_label true:ラベル名、false:列名 true:Employee number、false:employee_number

プロパティ

No. 形式 プロパティ 説明 デフォルト値
1 CSV glide.csv.export.limit 最大行数 10,000行
2 XLSX glide.xlsx.export.limit最大行数 10,000行
3 XLXS glide.xlsx.max_cells 最大セル数 500,000セル

余談

ServiceNowがSSO対応している場合にバッチファイルからcsv及びxlsxファイルをダウンロードする場合は次の記事を参照
https://qiita.com/htshozawa/items/24cb8ec093491511384c

1
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?