JeremyLahners
3 years agoQrew Cadet
Querying from many-to-many table to populate field value
I have a many-to-many relationship of employees to campaigns. Each employee can serve one of three roles within a campaign. In my scenario I will only ever have one employee serving each role. Table design shown below:
Within the Campaigns table, I would like to be able to see the Employee name in each of the three distinct fields. So Campaigns should have three fields called Assistant, Strategist, and Setter.
The query seems fairly easily - basically something like "Select Employee Name from Assignments where Campaign = [Record ID#] and Role = 'Strategist'". Unfortunately I cannot figure out how to make this happen... Any suggestions on how to accomplish this? Should I just abandon the many-to-many relationship and create three independent relationships?
TIA
------------------------------
Jeremy Lahners
LeadBaller
------------------------------
Within the Campaigns table, I would like to be able to see the Employee name in each of the three distinct fields. So Campaigns should have three fields called Assistant, Strategist, and Setter.
The query seems fairly easily - basically something like "Select Employee Name from Assignments where Campaign = [Record ID#] and Role = 'Strategist'". Unfortunately I cannot figure out how to make this happen... Any suggestions on how to accomplish this? Should I just abandon the many-to-many relationship and create three independent relationships?
TIA
------------------------------
Jeremy Lahners
LeadBaller
------------------------------
- The combined text summary field only works on field types of text. Your employee name field is actually a user field.
So just make a text Formula Field called [Employee Name (text)] with the following formula
UserToName([Employee Name])
and summarize that field.
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------