https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
n

NS Admin

04/26/2022, 5:07 PM
Our team is tired of converting Leads to Customers that come in from our Commerce portal. So our ops team asked me to write a script that converts Leads automatically to a customer (our business process). I can convert everything well; but, am getting an error when trying to set the password. I'm assuming there is something special I have to do there. Any recommendations?
z

Zoran R-DATAGRAM

04/26/2022, 5:10 PM
I am not sure that you have option to set a password for the customer... Honestly, never tried before, but did you try to give access without password and set invitation email
n

NS Admin

04/26/2022, 5:11 PM
yeah. I am using that as my backup plan. But when the "lead" registers online, they are setting their password and I just want to carry this over to the customer. I'm a bit confused how other companies manage this. Surely people dont convert every New Account From Lead to Customers when someone wants to buy something (but that is probably for suitecommerce forum 🙂 )
z

Zoran R-DATAGRAM

04/26/2022, 5:14 PM
where does lead exactly create their record? On the NetSuite external form or suitelet page...?
n

NS Admin

04/26/2022, 5:15 PM
The standard Suitecommerce LOGIN / REGISTER page.
z

Zoran R-DATAGRAM

04/26/2022, 5:17 PM
Before submit? to change status from lead to customer? Is it possible? Just brainstorming...
n

NS Admin

04/26/2022, 5:18 PM
Yeah, doing before submit currently. Using Aftersubmit I couldn't get the password value.
password fields are unaccessible from suite script
n

NS Admin

04/26/2022, 5:23 PM
Thanks for finding that!
Promised I queried for a while 🙂
z

Zoran R-DATAGRAM

04/26/2022, 5:25 PM
And role? is the associated role (Customer center) already set?
m

Michelle Beutler

05/03/2022, 5:51 PM
Just wondering if you had any luck on this? We are trying to set the password or click the "send password notification email" using a workflow and not having any luck.