web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Attachments in Email c...
Power Apps
Unanswered

Attachments in Email coming up with null / blank error

(1) ShareShare
ReportReport
Posted on by 14
Hi
I'm using the email templare screen in an app and referencing an attachment from a sharepoint list (using the attachment component, see attached image) to attach to the email thats being sent using the Office365Outlook.SendEMailV2 function. 
 
When sending the email using code in attached image, i get an error stating the attachments field cannot be blank or empty. Fro the image, you can clearly see the attachment component is populated. 
 
However, while in the email form, if i remove the referenced attachment and attach a new item from local drive, and send the email it delivers fine and attaches the new attachment. 
 
Looks like its caused by the referencing of the attachment which for some reason is not working.
 
I'm using gallery on a previous screen to capture the attachment info, so the attachment Items property is set to galDocs.Selected.Attachments, but I've tried Lookups and filter statements too, which dont work either.
 
Any help welcome!
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
    Hi
     
    Can you try replacing Name and Value with ThisRecord.Name and ThisRecord.Value
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • HV-10091544-0 Profile Picture
    14 on at
    Hi @Nandit
     
    That did'nt work. "ThisItem" won't work on the email screen because its not directly connected to the source data like a form or gallery would be.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard