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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue with Instant Pow...
Power Automate
Unanswered

Issue with Instant Power Automate Flow Triggering Without Attachments

(0) ShareShare
ReportReport
Posted on by 13

 

Hello Everyone,

I’m encountering a challenge with an Instant Power Automate flow connected to a Canvas Power App button control. The flow is designed to trigger with the following inputs:

  • Requester Email: Retrieved using User().Email
  • Requester Name: Retrieved using User().FullName
  • File: Based on the attachment control in my Edit/New Form control.

The button control’s OnSelect property is set up as follows:

SendemailtoOwner.Run(
 User().Email,
 User().FullName,
 { file:{ name: First(Datacardvalue11.Attachments).Name, contentBytes: First(Datacardvalue11.Attachments).Value}}
)

The expectation is that upon triggering, the flow sends an email to the specified recipient with the attachment included. In the Send an email (V2) action, I’m using triggerOutputs()?['name'] for the attachment name and triggerOutputs()?['contentBytes'] for the file content.

However, I’ve noticed that the flow does not trigger when no file is attached, and only triggers when a file is attached. Could this be due to the file property receiving a null value, causing the trigger to fail? What’s perplexing is that there’s no indication of the flow failing in the Power Automate flow run history.

Has anyone faced a similar issue or can provide insights into what might be causing this behavior?

Categories:
  • jitheshk Profile Picture
    100 on at

    The flow will be triggered only when you are passing all 3 parameters.

  • baldeep_1993 Profile Picture
    13 on at

    is there any way that i can skip that particular trigger part if it doesn't contain any value, like if i don't attach any attachment then can i skip that part 

  • jitheshk Profile Picture
    100 on at

    Before invoking Power automate flow from Power apps, check if the attachment is null and pass a dummy value or use Coalesce function and pass dummy value.

     

    SendemailtoOwner.Run(
    User().Email,
    User().FullName,
    { file:{ name: Coalesce(First(Datacardvalue11.Attachments).Name,'dummyFileName.txt'), contentBytes: Coalesce(First(Datacardvalue11.Attachments).Value,'dummyValue')}}
    )

     

    And manage this scenario in Power automate where File Name is 'dummyFileName.txt'.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard