アクティブな Service Now からインシデントのリストを取得しようとしています。データから due_date という特定のフィールドが必要なだけです。JSONを使用する場合
curl -s -L --user username:password --header "Accept: application/json" --header "Content-Type:application/json" "https://myservicenow.com/api/now/table/incident?sysparm_query=opened_atRELATIVEGE@dayofweek@ago@100"
のような URL を取得します。
{
"active": "true",
......
"due_date": "2015-07-22 07:07:28",
}
CSV Web サービスを使用して同じことをしたい。だから私は使った
curl -s -L --user username:password "https://myservicenow.com/incident.do?CSV&sysparm_query=opened_atRELATIVEGE@dayofweek@ago@100"
次のようなフィールドを取得します
"number","sys_created_by","caller_id","short_description","subcategory","u_subcategory_detail","category","priority","state","assignment_group","assigned_to","opened_at","resolved_at"
しかし、フィールド due_date は存在しません。CSV 形式で取得するフィールドを指定するにはどうすればよいですか?