Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Is there any way to create a contact and set password using script?

Alon Grod
Tera Expert

Hi,

Is there any way to create a contact in 'customer_contact' table and set the login password using script?

Please share the script if possible

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@Alon Grod 

customer_contact extends sys_user so you can set the password using this logic

gr.user_password.setDisplayValue('your password here'); // gr is the GlideRecord object for that table

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@Alon Grod 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader