cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sam44
Level: Powered On

2 simple tables to lookups

I'm creating Canvas app with CDS as datasource.

I have 2 Collections such as "Location" and "Location with Email"

I'm using Combobox to choose "Location" table's value and allow users to multi-select .

 

"Location" only has labels as below picture shown.
2019-08-23_15-13-39.jpg

"Location with Email"

2019-08-23_15-15-03.jpg

 

I want to have email address as I send notification for selected location's people so I have tried like;

 

ClearCollect(MailTest,combobox.SelectedItems.Value);
AddColumns(MailTest,"EAddress",LookUp('Location with Email',MailTest.Value = Location with Email.'Display Name').Email)

 

then, I wanted to try Concat above. But when I execute this, "=" part comes with errors, cannot compare...

How can I create concatenated email address be reflecting Combobox selected items?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: 2 simple tables to lookups

Hi @Sam44 

 

Since this is an option set type field, you need to modify the expression as:
 
Concat(Filter('Location with Email',Name in Split(Concat(ComboBox1.SelectedItems.Value,Text(Value),","),",")),Email,",")
 
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
4 REPLIES 4
Super User
Super User

Re: 2 simple tables to lookups

Hi @Sam44 

 

Can you try to use the below expression:
 
Concat(Filter('Location With Email',Name in ComboBox2.SelectedItems.Value),Email,",")

MicrosoftTeams-image (25).png

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

Sam44
Level: Powered On

Re: 2 simple tables to lookups

Thanks  @yashag2255 !!

Appriciate your help.

I don't know why but I got error with your formura.

2019-08-23_23-24-41.png

Error says "Cannot convert this data type. PowerApps cannot convert Text to OpenSetValue."
One thing I didn't mention but Combobox ties to CDS multiple select field with option set value. And that's why I have another collection "Location with Email"......

Super User
Super User

Re: 2 simple tables to lookups

Hi @Sam44 

 

Since this is an option set type field, you need to modify the expression as:
 
Concat(Filter('Location with Email',Name in Split(Concat(ComboBox1.SelectedItems.Value,Text(Value),","),",")),Email,",")
 
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Sam44
Level: Powered On

Re: 2 simple tables to lookups

It worked!!!!! Awsome!

Thank you for your help, @yashag2255 !!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 211 members 4,694 guests
Please welcome our newest community members: