How to copy password from the record producer of user table?

Karthik Reddy T
Kilo Sage

Hi All,

How to copy password from the record producer of user table?

My requirement: I want to create record producer of user table.

I am able to get the   all the details from record producer to user but except the password field.

Could any one has faced this type issue?

Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.
1 ACCEPTED SOLUTION

Hello Karthik,



To set the password from the record producer script which is on user table should be like:



current.user_password.setDisplayValue(producer.field_name);



This will create a password from   the field value on record producer.



Thanks,


Surya Amara



PS: Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

14 REPLIES 14

Hello Karthik,



To set the password from the record producer script which is on user table should be like:



current.user_password.setDisplayValue(producer.field_name);



This will create a password from   the field value on record producer.



Thanks,


Surya Amara



PS: Hit like, Helpful or Correct depending on the impact of the response


Hello Surya,



Its working now. Thanks for the response.


Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.

Ujjawal Vishnoi
Mega Sage
Mega Sage

Hi Karthik,



Please try below mentioned code in the script section of Record Producer.



current.user_password.setDisplayValue(producer.<replace the name with variable name of password>+ '');



Please make sure you are not mapping the password with any field of sys_user table. I tried at my instance and it is working fine.



Hope this helps.



Regards


Ujjawal


Hello   Ujjawal,



Its working now. Thanks for the response.


Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.

Ujjawal Vishnoi
Mega Sage
Mega Sage

Hi Karthik,



Were you able to achieve the required result by using above approach.



Regards


Ujjawal