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

Issue Returning Multiple Values

Hi everyone,

 

I'm having an issue returning multiple values to a textinput or label.

 

Basically I have two text boxes.

One with the names of employees selected from a dropdown. (I already made the text comma delimited)

(FirstName LastName, FirstName LastName, FirstName LastName)

 

The other with the supervisors e-mail for the selected employees.

LookUp(TravelersList,AdditionalTravelers.Text = EmployeeName,CurrentSupMail)

 

My issue is that my 2nd textbox only shows the supmail when one employee name is selected.

Otherwise it is blank.

 

Can anyone help me display multiple sup e-mails based on my criteria?

Preferable seperated by "; " so I can e-mail those involved in the travel requests.

 

Thank You,

Justin

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Issue Returning Multiple Values

I think I have it figured out. Try this crazy formula that combines the ConCat, ForAll, Split and Lookup functions.

 

Concat(ForAll(Split(AdditionalTravelers.Text, ", "), LookUp(TravelersList, Result = EmployeeName, CurrentSupMail)), Value, "; ")



--------------------------------------------------------------------------------
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

2 REPLIES 2
Super User
Super User

Re: Issue Returning Multiple Values

I think I have it figured out. Try this crazy formula that combines the ConCat, ForAll, Split and Lookup functions.

 

Concat(ForAll(Split(AdditionalTravelers.Text, ", "), LookUp(TravelersList, Result = EmployeeName, CurrentSupMail)), Value, "; ")



--------------------------------------------------------------------------------
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

Justin_Moz
Level: Powered On

Re: Issue Returning Multiple Values

Thank you so much Jeff!!

It works perfectly! Smiley Very Happy

 

I spent a lot of time trying to get anything to work and I really appreciate your help and time!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

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

Top Kudoed Authors
Users Online
Currently online: 188 members 5,167 guests
Please welcome our newest community members: