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 7 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

    7 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: https://www.sugaroutfitters.com/docs/securitysuite/developer-tips

  2. vytenis member avatar

    vytenis

    7 years ago

    Thanks!

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "No brainer. I have purchased it for two production installations and not regretted it."

    Read More Reviews