Our team is tired of converting Leads to Customers...
# suitescript
n
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
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
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
where does lead exactly create their record? On the NetSuite external form or suitelet page...?
n
The standard Suitecommerce LOGIN / REGISTER page.
z
Before submit? to change status from lead to customer? Is it possible? Just brainstorming...
n
Yeah, doing before submit currently. Using Aftersubmit I couldn't get the password value.
password fields are unaccessible from suite script
n
Thanks for finding that!
Promised I queried for a while 🙂
z
And role? is the associated role (Customer center) already set?
m
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.