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 / Empty expression for E...
Power Automate
Answered

Empty expression for Excel

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone, new bee here trying Power Automate. I've created a flow to get tasks from Planner and feed an Excel sheet, however, when comes to add dates I need to create and format expression. But when a task is created in Planner not always a Start Date is added. So, I'm trying the expression below and I'm getting nowhere, as Power Automate says the expression is invalid. 

 

if(empty(items('LoopTasks')?[createdDateTime]), '', formatDatetime(items('LoopTasks')?['createdDateTime'],'dd/MM/yyyy'))

Categories:
I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @Anonymous 

     

    Try this 

     

    if(empty(items('LoopTasks')?['createdDateTime']),'',formatDateTime(items('LoopTasks')?['createdDateTime'],'dd/MM/yyyy'))

     

    This works for me 🙂

    Nived_Nambiar_0-1690646691357.png

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @Nived_Nambiar  it worked. 

     

    Brilhant!!!!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard