Current.operation is not working with AFETR business RULE

pratiktayade28
Tera Contributor

We are facing an issue for current.operation() for the AFTER business rule on our TEST instance. But the same function is working properly on DEV instance for AFTER business rule.
We have the below requirement 

When a contact is assigned to the group, a BR should run to remove the sn_customerservice.customer role from their contact record.  

When a contact is removed from the  group, a BR should run to add the sn_customerservice.customer role to contact record. 

3 REPLIES 3

Mark Manders
Mega Patron

This is weird configuration. Best practice is to add roles through groups. With allowing customers to create their own users, that may be something you need in your instance, but still.

Which part isn't working? The adding or removing? If it's the removing, maybe just create 2 rules. One for insert, one for delete.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Rishi Kendale
Giga Guru

Hi @pratiktayade28 

 

Which scenario is not working for you ... both ?

 

I would suggest to create separate BR for both operations to avoid any future complications. Or you can try using on-Change CS with script include.

 

Thanks,

Rishikesh Kendale

An OnChange CS will never work. Adding/removing a user from a group is done by creating/deleting a sys_user_grmember record. You don't do that on the record itself, hence you don't make any client side changes.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark