How to assign the attribute "teamNames" in formulas?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cpicanco
    Member
    • Sep 2019
    • 60

    How to assign the attribute "teamNames" in formulas?

    How to assign the attribute "teamsNames" in formulas?

    I am trying to use a string attribute identical to the team name, but it is not working, for example:

    teamNames = name;
    Last edited by cpicanco; 09-20-2019, 07:49 PM.
  • cpicanco
    Member
    • Sep 2019
    • 60

    #2
    The following doesn't work also:

    entity\addLinkMultipleId('teams', name)


    How can I found the team id from its name inside formulas or just add a new name to the "teamsNames"??
    Last edited by cpicanco; 09-20-2019, 07:48 PM.

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2731

      #3
      Hi,
      You can't use the team'sname in this formula to select the team. Id only. https://github.com/espocrm/documenta...linkmultipleid.
      To get Id of the team just go to the team detail view and get it id from the URL string.
      Example:
      Code:
       espocrm/#Team/view/5d8867a12919e38c0
      Id of this team is '5d8867a12919e38c0'

      Comment

      • cpicanco
        Member
        • Sep 2019
        • 60

        #4
        Well, may I ask if using team's name would be possible implementing a custom function for formulas?

        What I really need is to setup teams automatically based on the name. We have a lot of teams, one for each client, and it is not feasible doing it manually.

        Comment

        • Maximus
          Senior Member
          • Nov 2018
          • 2731

          #5
          Yes, it is possible to use formula for predefining the teams. You can use this formula for the 'teams' field https://github.com/espocrm/documenta...linkmultipleid.
          You can also try to find a similar question on the forum.
          For example you can even try a way described here https://forum.espocrm.com/forum/gene...count-contacts.

          Comment

          Working...