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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Compose If Statement help
Power Automate
Unanswered

Compose If Statement help

(0) ShareShare
ReportReport
Posted on by

I've created a flow to create a calendar event for certain chains of email. It was working fine until I had a conflict. The data is entered from forms. If the start date is the same as the end date, then it doesn't allow me to create the calendar event as an "All Day Event". I created another compose action to compare the two, return blank if they match, or return the end date if they do not. 

 

if(equal(outputs('DateStart') , outputs('DateEnd')), '', outputs('DateEnd'))
 
However it only returns the DateStart value. What am I missing?
 
 
Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @MattPitz 

     

    I believe what you need to do is to  add the below expression to the is all day event, choose enter custom value and add below expression

    Mira_Ghaly_0-1652690476252.png

     

    if(equals(outputs('DateStart') , outputs('DateEnd')), true,false)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 173 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 95 Super User 2026 Season 1

Last 30 days Overall leaderboard