Current.operation is not working with AFETR business RULE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 03:11 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 03:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 03:52 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2024 04:02 AM
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