cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ArturasF
Helper I
Helper I

Collect email address from Person column in Sharepoint List

Hello, I have read other suggestions but was not able to understand them, perhaps someone could help on this problem:

 

I have a sharepoint list where these fields are available:

 

ID - Number

Driver - Person only (only one allowed)

Department - Text (single line)

 

How to populate a collection with only these values:

 

ID - Number

Email - email address extracted from driver

Department - Text

 

I know how to use ShowColumns while collecting, but I don't know how to extract email address from Person Column. Please help!

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Thorpe
Super User
Super User

You can use the combination of Addcolumns() and ShowColumns(). Here is an example:

 

ClearCollect(colTemp, ShowColumns(AddColumns(SPListName, "Email", Driver.Email), "ID", "Department", "Email" ))

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Jeff_Thorpe
Super User
Super User

You can use the combination of Addcolumns() and ShowColumns(). Here is an example:

 

ClearCollect(colTemp, ShowColumns(AddColumns(SPListName, "Email", Driver.Email), "ID", "Department", "Email" ))

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,645)