by eggsurplus

Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SugarCRM or SuiteCRM to specific groups or teams. Supports unlimited assigned users, unlimited group assignments to records, custom layouts for each group, login/sudo capabilities and much more.

Free Trial

By clicking you consent to share your profile with the developer

#2700 - How to add teams for existing records and all related records

Closed General Question created by vytenis 6 years ago

Teams are inherited from parent record. Its works perfectly when I create new record. For example if Acount has team when I create new opportunity it's automatically assigned to team.

But when I assigned team to account that already has created Opportunity created before, Opportunity remains without team.

How do you recommend activate hook to assign teams for all child records?

  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    6 years ago

    The best way to do that is to run a SQL script. You could also have a logic hook that runs a SQL script on a after_relationship_add hook. A sample script is provided at the bottom of this doc:

  2. vytenis member avatar


    6 years ago


This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
  • "I can say that it has been one of the best modules within our SugarCRM CE instance!"

    Read More Reviews