cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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! 😄

 

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

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,240)