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

#573 - Assign Records

Closed General Question created by joaninhafonseca Verified Purchase 10 years ago
Hello, I'm trying to add a functionality to SugarCRM using the Securty Suite. I want to add automatically the teams when i create a case, and for that, this support page was very helpful as i used part of the code that i saw in another post: $securityTeam = new SecurityGroup(); $securityTeam->retrieve_by_string_fields(array('name' => $field_securityGroup )); $bean->load_relationship('SecurityGroups'); $bean->SecurityGroups->add($securityTeam->id); $bean->save(); The problem is that i don't know the name of the team, i just know the id of the user that belongs to the teams i want to add. I know that i can do this with a query to the securitygroups_users table, but i want to do this without doing queries to provide a better performance. There are another way i can do this? Thanks in advance for your help! Regards, Joana Lopes da Fonseca
  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    10 years ago

  2. eggsurplus member avatar

    eggsurplus Provider Affiliate

    10 years ago

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

    Read More Reviews