Formula: Check if user is member of a team

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JayBee4pl
    Member
    • Oct 2019
    • 59

    Formula: Check if user is member of a team

    Hi, hope i did not asked this question already.
    In Fomulas i need to know if the User who has saved the Form is member of a specefic Group.
    Thanks for any Help
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi Jay,


    Code:
    $teamsIds = env\userAttribute('teamsIds');
    $isInTeam = array\includes($teamsIds, 'paste-id-of-team-here');
    Last edited by yuri; 04-21-2020, 04:45 PM.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • JayBee4pl
      Member
      • Oct 2019
      • 59

      #3
      Thanks, i have implemted this. We will now Test. Will Report.

      Comment

      Working...