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

 

2 REPLIES 2

Shruti
Giga 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);

FrykiSen
Mega Contributor

 

The behavior you’re seeing is controlled by the business rule “Generate password and send notification”.

If you have SSO enabled that business rule will only generate a password if the Service Portal login widget is configured with the parameter:

bypass_sso: true

.on the sp_instance login widget.

If your portal endpoint is vdp, the widget to update is:

  • vdp_login_widget_instance

Otherwise, the widget is:

  • sn_svdp.login_widget_instance  

By default, when bypass_sso is not set (or is false), the system assumes SSO is used and therefore sends the SSO-based invitation email instead of generating a password. This will also not force the SSO signin flow for Vendors.

 

FrykiSen_0-1769538421895.png