cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MQN
Level: Powered On

Emailing attachments from Form.LastSubmit

Hello,

 

I've got a powerapp which gathers some information in a form and submits that information to a sharepoint list. We also wanted to send some email summaries with the powerapp, and in doing so we attached the attachments from the form to that email. I had previously been using something like:

Attachments: ForAll(
LookUp(
SPList,
ID = Form1.LastSubmit.ID
).Attachments,
   {
      Name: DisplayName,
      ContentBytes: Value
   }
)

in Office365.SendEmail to grab the attachments from the newly created sharepoint list item and send them in the email, but as of a few weeks ago it seems to have stopped working. Is there something that changed recently which broke this? 

EDIT: NEVERMIND MY BRAIN IS SMALL AND SMOOTH AND I BROKE THIS

i previously moved the list and updated it everywhere except for this email section. whoops. 


1 REPLY 1
Dual Super User
Dual Super User

Re: Emailing attachments from Form.LastSubmit

Hi @MQN 

 

For patching the attachments from the last Submit form, you can use the expression as:

{Attachments: AddColumns(RenameColumns(FormName.LastSubmit.Attachments, "Value", "ContentBytes"), "@odata.type","")}

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,830)