The CreatorCon Call for Content is officially open! Get started here.

Business Rule on User deactivation to remove associated role - not working and opens welcome.do

Kartik Gopal
Tera Contributor

I created a new Business Rule on User deactivation to remove all of user's roles. But after deactivating role it now opens welcome.do page and the roles are not getting removed.

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@Kartik Gopal Could you please post the snapshot of the BR configuration along with the script you are using inside the business rule.

Kartik Gopal
Tera Contributor

I had an non-existent value for role in my business rule when deactivation, hence the code was not working.

 

Not sure why it was going to welcome.do page, maybe because of this redirect line.

gs.setRedirect(getLink("true")); 

 

I changed it to gs.setRedirect(current); and now it is working fine.