cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Email Photo Gallery

Hello, I have  a button that adds a photo to a collection on select from "Add Image" (not a camera) and it is working great. I want to be able to then email that collection of photos but I can't seem to get it to work. I can get a single pic to email via "Add Image" and I can get multiple pics to email when I use the "camera"function but I want to be able to do it from Add Image using a gallery. Here is my current formula...

 

If(!IsBlank(DataCardValue11.Text)&&!IsBlank(DataCardValue12.Selected.Value)&&!IsBlank(DataCardValue13.Selected.Value)&&!IsBlank(DataCardValue14.Text), Office365.SendEmail(DataCardValue12.Selected.Value, "Feedback", "The number is: " &DataCardValue11& Char(10)& "Area of Focus: " &DataCardValue13.Selected.Value& Char(10)& "Missed Opportunities: " &DataCardValue14, {Attachments:Feedbackpics}); SubmitForm(Form3);NewForm(Form3); Navigate(HelpScreen,ScreenTransition.Fade))

 

I thought by just adding my collection to attachements ie "Feedbackpics" it would work becasue that is how it works when I use the camera function. However, as soon as I add that I get an error. Any help would be great! Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Email Photo Gallery

HI @Stmorgan,

Can you share a bit more about your issue?

Can you show me the formula of adding a photo to a collection?

 

I made a test.5.PNG

Set the onselect property of button1 to:

Collect(collection1,{Name:"pic.jpg",ContentBytes:UploadedImage1.Image,'@data.type':""})

Set the onselect property of button2 to:

Office365.SendEmail(TextInput2.Text,"feedback","The number is: " &TextInput1.Text,{Attachments:collection1})

6.PNG

 

please check if the formula of ContentBytes is  AddMediaButton1.Media.

 

regards,

Eason

 

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Email Photo Gallery

HI @Stmorgan,

Can you share a bit more about your issue?

Can you show me the formula of adding a photo to a collection?

 

I made a test.5.PNG

Set the onselect property of button1 to:

Collect(collection1,{Name:"pic.jpg",ContentBytes:UploadedImage1.Image,'@data.type':""})

Set the onselect property of button2 to:

Office365.SendEmail(TextInput2.Text,"feedback","The number is: " &TextInput1.Text,{Attachments:collection1})

6.PNG

 

please check if the formula of ContentBytes is  AddMediaButton1.Media.

 

regards,

Eason

 

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Email Photo Gallery

Hi @Stmorgan thank you for your post. Can you review the response from @v-sheyu-msft and advise if you're still having an issue?

 

@Anonymous

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,471)