update user profile using REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2015 02:31 AM
I want to update a already existing user profile using REST Api. The problem is that PATCH request in servicenow API explorer does not give me a field to write the matching query.
Could someone let me know how can i match the 'user_name' field in user table using api so that the user record can be updated when the user fills the front end form which is written in .Net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2015 04:17 AM
its difficult to comment on this as i dont know what kind of integration you have. dont you have list of sys_id for users on .net side?
may b you can make a GET rest call to instance..n query for userId field. and get sys_id of that user. then pass that sys_id in Patch/PUt call.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2015 04:22 AM
Hi Rushit,
I feel that it would be very lengthy process but he needs to focus on that why it is not working for the user_name since it is unique and it works.
May be he can try all the possibility and raise a hi ticket in case it does not go through.
Regards,
Atul Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2015 04:28 AM
Hi atul, yes it is a lenthy process but i dont see any other option. service now's API is made that way(it neeeds sys_id for any kind of updation.)
lets see if HI pepl have any other solution.