Can Number be used instead of sys_id when using Rest Call Put Method?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2017 01:03 AM
Looking at wiki of Table API
http://wiki.servicenow.com/index.php?title=Table_API#gsc.tab=0
it is written there to use sys id in the endpoint in order for you to update specific record
can this be changed to number instead?
Thanks
Broderick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2017 07:39 AM
Hi,
You can use Number for updating record, because duplicate number will not allow in servicenow, also you can make coalesce true on transform map, it will take care of update or insert also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2018 12:12 AM
This can be possible, please see below,
https://dev233.service-now.com/incident.do?JSONv2&sysparm_query=number=INC0002343&sysparm_action=update
Payload: {"state":"6","closure_notes":"Ticket can be closed"}
Method: POST

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2022 04:02 AM
Hi Quiksilver,
To update a record using a Table API, table name and sys_id is required. This is because not all tables have field Number.
It is possible update a particular table using Number by creating a Scripted REST API.
User used in REST API usually is different from user to login using web browser and have different role and less privileges.