Hello! Has anyone tried providing access to a spec...
# suitescript
j
Hello! Has anyone tried providing access to a specific contact in customer record using script? Is it viable to provide access via script? Thanks!
b
j
Hi @battk, just a quick question, maybe you know the answer. We have this implemented via Online Customer Form, so we have a Password field from the form and we use that to set the password when we provide access to contact record. Now, the issue is we're getting an Encrypted value when using getValue() to a custom field with Password type. When we set the Password of the Contact record, we successfully provided the access. But when logging in to the website, we're getting Failed Password error. Is getValue() for Password returns an encrypted value?
b
Password fields are designed to hash fields and hide that process from you
Password custom fields are inappropriate for setting other fields
👍 1
j
Got it. Seems like we're going on a different route from here. Thank you!
b
you may be able to copy the value to another field in client script if you are just trying to use the masking functionality related to password fields