Hi,
I have a sharepoint list which has a Person or Group field that accepts multiple values. how can i get a comma seperated emails of all the people in this column.
thanks,
-Dileep
Solved! Go to Solution.
Hi @dileeprajam
Hi @dileeprajam ,
The Person or Group column entries are complex objects, hence you have a few replies on this, depending on what you're trying to do 🙂
You may need to navigate the object to a specific property in order to get to the email - as others have indicated you can achieve this using .Email as a property navigation of the object.
However, this only applies to single entry persons - each entry is a nested Table of properties, so navigating to one is easy enough. If, however you are using multiple entries per row - then these are nested Tables within each row, and you'll need to iterate through all of them per row to get all entries in the column.
If it's just one entry per row, the previous responses should apply.
If it's multiple entries per row, then the question is, are you looking for all the entries in one row, or all the entries in all rows?
Assuming all entries in one row - and that your datasource is called "personlist" and your person column is "multipersons":
Concat(LookUp(personlist, rowcondition, multipersons), Email,",")))
Where rowcondition would be the condition you use to find your row - this will return the emails of all the persons in that row.
Assuming all entries in all rows - try set a Label Text: property to;
Concat( ForAll( ForAll( personlist, multipersons ), Concat( Value, Email, "," ) ), Value, "," )
The reason this looks so complicated is that for each row, we need to go through each multiperson entry for that row, and do this for all rows. For connected datasources, also remember your row return and delegation limits may apply.
Hope this helps,
RT
Hi @dileeprajam
Assuming Employee is the name of your person or group column this code will give you a comma separated values list.
Concat(your_datasource_name,Employee.Email,", ")
---
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."
Hi @dileeprajam ,
The Person or Group column entries are complex objects, hence you have a few replies on this, depending on what you're trying to do 🙂
You may need to navigate the object to a specific property in order to get to the email - as others have indicated you can achieve this using .Email as a property navigation of the object.
However, this only applies to single entry persons - each entry is a nested Table of properties, so navigating to one is easy enough. If, however you are using multiple entries per row - then these are nested Tables within each row, and you'll need to iterate through all of them per row to get all entries in the column.
If it's just one entry per row, the previous responses should apply.
If it's multiple entries per row, then the question is, are you looking for all the entries in one row, or all the entries in all rows?
Assuming all entries in one row - and that your datasource is called "personlist" and your person column is "multipersons":
Concat(LookUp(personlist, rowcondition, multipersons), Email,",")))
Where rowcondition would be the condition you use to find your row - this will return the emails of all the persons in that row.
Assuming all entries in all rows - try set a Label Text: property to;
Concat( ForAll( ForAll( personlist, multipersons ), Concat( Value, Email, "," ) ), Value, "," )
The reason this looks so complicated is that for each row, we need to go through each multiperson entry for that row, and do this for all rows. For connected datasources, also remember your row return and delegation limits may apply.
Hope this helps,
RT
User | Count |
---|---|
139 | |
132 | |
75 | |
72 | |
69 |
User | Count |
---|---|
214 | |
199 | |
64 | |
62 | |
54 |