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

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

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