I am trying to get a list of incidents from Service Now which is active. I just need a specific field called due_date from the data. If I use 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"
I get a URL like
{
"active": "true",
......
"due_date": "2015-07-22 07:07:28",
}
I want to do the same thing using CSV web service. So I used
curl -s -L --user username:password "https://myservicenow.com/incident.do?CSV&sysparm_query=opened_atRELATIVEGE@dayofweek@ago@100"
I get fields like
"number","sys_created_by","caller_id","short_description","subcategory","u_subcategory_detail","category","priority","state","assignment_group","assigned_to","opened_at","resolved_at"
But the field due_date is not present. How can I specify the fields to retrieve in CSV format ?