Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Combining email addresses from two sources

(0) ShareShare
ReportReport
Posted on by 94

Closest I could get was

 

ClearCollect(AllEmails, Distinct(Data1, email), Distinct(Data2,email))

 

This have me 2 tables within a table with the correct data.  Makes sense as Distinct returns a Result table. So I guess my question is how to reduce that down to one table with a column with emails for both Data1 and Data2?

Categories:
  • Verified answer
    cycle4passion Profile Picture
    cycle4passion 94 on at
    Re: Combining email addresses from two sources

    I was able to piece it together. Included a separator between Data1 and Data2, and specified sortorder for each, and removed blanks created by trailing comma.

     

    Dropdown.Items = 

    Split(Left(Concat(Data1, email & ","), Len(Concat(Sort(Data1, surname, SortOrder.Ascending), mail & ","))-1) & ",-------," & Left(Concat(Sort(Data2, surname, SortOrder.Ascending), mail & ","), Len(Concat(Data2, mail & ","))-1), ",")

     

  • cycle4passion Profile Picture
    cycle4passion 94 on at
    Re: Combining email addresses from two sources

    Closer now, I used

     

    Concat(Data1, email, ",") & "," & Concat(Data2, email, ",")

     

    which gives me a string of emails comma separated, now trying to fit this into a dropdown. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard