How do I change the notification to prompt Vendor Registration through the Vendor Portal?

PuteriS
Tera Contributor

Dear experts,

 

I am facing an issue where if I register a new third-party contact, it will generate a registration email to them. But I dont understand why the email generated is the ones using SSO to login. It does not make sense to have vendor's using SSO to login? How do I make it to prompt the Vendor Contact Invited without SSO to be sent instead of sending the one with SSO login feature, because i need the system to generate a password then only can be send to the vendor for registration purpose.

PuteriS_0-1753260514372.png

 

1 REPLY 1

Shruti
Mega Sage
Mega Sage

Hi,

Update the business rule "Generate password and send notification"

Shruti_0-1753261600978.png

 

(function executeRule(current, previous /*null when async*/ ) {

    var newPassword = GlideSecureRandomUtil.getSecureRandomString(8);
    current.user_password.setDisplayValue(newPassword);
    current.password_needs_reset = true;
    current.registration_status = 'sent';
    gs.eventQueue("vendor_core.register_contact", current, current.email, newPassword);

   
})(current, previous);