cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Phineas
Post Prodigy
Post Prodigy

Email All Collection Items

I have a Gallery, in the Gallery are Icons, one of which creates a Gallery the other emails the contents of the Gallery. Everything appears to be working, except the email shows the same item from the Gallery/Collection, even though I picked to different items and there were two and only two items in the Collection? Why did I get the same and not both?

Phineas_0-1649954146860.png

 

Icon1 OnSelect:
Collect(EventContactsCollection, {EventName: ThisItem.Title, DateofEvent: ThisItem.DateOfEvent, CompanyName: ThisItem.CompanyName});

Icon2 OnSelect (this is html in the app, the Community post rules took it out):
Office365Outlook.SendEmailV2("joeshmoe@acme.com", "Contact Email", Concat(ContactsCollection, "

Event Name: " & ThisItem.Title & "
" & "Date of Event: " & ThisItem.DateOfEvent & "
" & "Company Name: " & ThisItem.CompanyName & "
" & " LINK "));

What I see in the email received:

Event Name: Muffler Mania
Date of Event: 2/4/2021
Company Name: Brap Brap Muffler Warehouse
LINK

 

Event Name: Muffler Mania
Date of Event: 2/4/2021
Company Name: Brap Brap Muffler Warehouse
LINK

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

@Phineas ,

Remove the ThisItem reference in the Concat and it should work as expected.

 

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.

Visit my blog Practical Power Apps

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

@Phineas ,

Remove the ThisItem reference in the Concat and it should work as expected.

 

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.

Visit my blog Practical Power Apps

chico
Advocate V
Advocate V

Brap! brap!! BRAP!!!

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (4,525)