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 Automate / Basic Send an Email V2...
Power Automate
Unanswered

Basic Send an Email V2 Flow failed BadRequest "Attachment Name" cannot be null or empty error

(0) ShareShare
ReportReport
Posted on by
This flow is failing becuase for some reason the Send an Email V2 is thinking an attachment is required
 
I have 3-step flow
 
"SharePoint trigger" and "Outlook Send an email v2"
 
Flow
1.When a new response is submitted
- Form Id

2.Get Response details
- Form Id
- Response ID
 
3.Send an email (no attachment)
To* Your Email Address
Subject* New Subject
Body* some basic text with some Dynamics Content
CC* my email address
Attachments

Steps to fix
I modified the Flow and deleted the NULL attachment reference and resaved.

Error is
Action 'Send_an_email_(V2)' failed: Parameter 'Attachment Name' cannot be null or empty. clientRequestId: XXXXXXXX
Categories:
2024-11-07 17_54_...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    did u maybe set the attachment field as requieredin your datasource?
     
     
    cheers
  • Verified answer
    CFernandes Profile Picture
    8,402 Most Valuable Professional on at
    Hey Mate,
     
    You can simply add a condition screenshot below, if attachment existing send an email with attachment if it does not, just send an email without attachments.
     
    Expression empty(<your attachment field name>)
     
     
    I did a video for Microsoft Forms some time back you can find it here - https://www.youtube.com/watch?v=YDWpGW1BaBU
     
    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!
     
    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.
     

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard