Updating Password using REST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2017 07:09 AM
- Create a Service Catalog
- Take two variables
User Name - Reference [sys_user]
New Password - Single Line Text
- On Order Now Button
- Using REST message on another instance selected user name should set the new password.
--------------------------------------------------------------------------------------------------------------------
so i have tried doing fields other than password all fields get fixed but password field is not getting set.
so can anyone please assist me for this problem.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2017 08:48 AM
Make sure you are setting the display value on the password field in your code or the change won't take.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2017 06:41 AM
#make sure you have made an outbound message !!
#make sure patch method is used with appropriate sys_id !!
#make sure in Patch query parameter write name: sysparm_input_display_value Value :true
then after
put this business rule on requested item
var r = new sn_ws.RESTMessageV2('PasswordResetter', 'PATCH');
r.setQueryParameter('sysparm_input_display_value',true);
r.setStringParameterNoEscape('user_password',current.variables.YOUR PASSWORD VARIABLE NAME);
var response = r.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2017 10:26 PM
Thanks alot sir...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2020 06:42 AM
Hi,
Can i have step by step process with config and background scripts code.
Regards,