set user location using REST API Explorer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2016 05:36 AM
Hello,
I want to set user location using REST API Explorer while create user. But it doesn't work.
Can someone help me please?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2016 05:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2016 05:47 AM
Remember that location is a reference field, so you must match a sys_id or a display value of one of your locations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2016 06:56 AM
Hi,
Thank you for your answer. I wanted to use the table location(cmn_location)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2016 07:32 AM
Hi Alassane,
This worked for me as admin.
Best Regards
Tony
curl "https://xxxxx.service-now.com/api/now/table/cmn_location" \
--request POST \
--header "Accept:application/json"\
--header "Content-Type:application/json" \
--data "{\"name\":\"london\"}" \
--user 'admin':'xxxxx'