cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
StephenGW
Post Patron
Post Patron

Text Input &

Hello all,

 

Got what should be a simple question but I'm struggling. I have a text input that works as a lookup in my Excel data to pull email address based on a couple dropdowns in my app. I would like to add some text from a text input in the app to allow people to add more email addresses that might not be in the Excel data. My first input box looks like this for the text property.

 

Filter(Emails, Location&Department = ddLocation.Selected.Locations&ddDepartment.Selected.Result)

 

with an output of something like this. email1@email.com,email2@email.com

 

I would like to allow the user to add emails based on the input box in the app. I have tired these.

 

Filter(Emails, Location&Department = ddLocation.Selected.Locations&ddDepartment.Selected.Result)&", "&tiAddNote.Text

Filter(Emails, Location&Department = ddLocation.Selected.Locations&ddDepartment.Selected.Result)&&", "&&tiAddNote.Text

Filter(Emails, Location&Department = ddLocation.Selected.Locations&ddDepartment.Selected.Result&", "&tiAddNote.Text)

 

The first 2 give me an error and the 3rd gives me no output.

 

Any ideas?

 

Thanks,

Stephen

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @StephenGW ,

You did not mention the field name that actually has the email in it, but you would need something like this

Concat(
   Filter(
     Emails, 
     Location = dLocation.Selected.Locations &&
     Department = ddDepartment.Selected.Result
   ).EmailFieldName & ";"
) & ";" & tiAddNote.Text

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @StephenGW ,

You did not mention the field name that actually has the email in it, but you would need something like this

Concat(
   Filter(
     Emails, 
     Location = dLocation.Selected.Locations &&
     Department = ddDepartment.Selected.Result
   ).EmailFieldName & ";"
) & ";" & tiAddNote.Text

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

@WarrenBelz 

 

It's always more simple than I am making it 🙂 I was trying to add it to the text input that already does the Filter but I guess I should have just been adding it into the Mail function. Thank you as always for the quick and concise reply! 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,010)