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

Community site session details

Session Id : rBG9ov9qayVlIBJH+QrLFb
Power Automate - Building Flows
Unanswered

How to get Date format to work when sending Forms via email

Like (0) ShareShare
ReportReport
Posted on 29 Jan 2021 11:10:22 by

Hi, I want to show Form dates like 'dd/MM/yyyy'. I have multiple date fields on Forms and I will get next error on power automate if I let some date field to empty on Forms.

 

Unable to process template language expressions for action 'Condition' at line '1' and column '13822': 'In function 'formatdatetime', the value provided for date time string '' was not valid. The datetime string must match ISO 8601 format.'.

 

It works perfectly if I fill all date fields on Forms.

 

My date fields looks like this 

formatdatetime(outputs('Get_response_details')?['body/rcc776c322f2247e2a45f2c62cd23dc74'],'dd/MM/yyyy')
 
How to get it working if I let some date field for empty?
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on 29 Jan 2021 at 13:45:47
    Re: How to get Date format to work when sending Forms via email

    @Mira_Ghaly 

     

    I changed it back to not formatted and conditions went through. Now I got again this error on email section.

     

    "ActionBranchingConditionNotSatisfied. The execution of template action 'Send_an_email_(V2)' skipped: the branching condition for this action is not satisfied."

     

    Power Automate error2.png

  • Mira Ghaly Profile Picture
    11,409 Moderator on 29 Jan 2021 at 13:30:18
    Re: How to get Date format to work when sending Forms via email

    @Tuukka

    On your left hand side of your conditions u should not add the formatted expression as this will throw error if the parameter passed to the formatdatetime does not contain data so u need to add condition if value is not null then do formatting otherwise don't Format and u can pass a constant.

     

  • Community Power Platform Member Profile Picture
    on 29 Jan 2021 at 12:57:40
    Re: How to get Date format to work when sending Forms via email

    Date fields formula's are on conditions and email body:

     

    Date1: formatDateTime(outputs('Get_response_details')?['body/rcc776c322f2247e2a45f2c62cd23dc74'],'dd/MM/yyyy')

    Date2: formatDateTime(outputs('Get_response_details')?['body/r814ef78b9dd444689d21747e94a55c5a'],'dd/MM/yyyy')

  • Community Power Platform Member Profile Picture
    on 29 Jan 2021 at 12:51:50
    Re: How to get Date format to work when sending Forms via email

    Power Automate error.png

    @Mira_Ghaly 

  • Mira Ghaly Profile Picture
    11,409 Moderator on 29 Jan 2021 at 12:41:45
    Re: How to get Date format to work when sending Forms via email

    @Tuukka 

    Can u add some screens for ur flow so that I can understand where is the issue?

  • Community Power Platform Member Profile Picture
    on 29 Jan 2021 at 11:55:15
    Re: How to get Date format to work when sending Forms via email

    @Mira_Ghaly 

     

    I tried that already and it didn't work. It goes through that conditions but the next error is 

     

    "ActionBranchingConditionNotSatisfied. The execution of template action 'Send_an_email_(V2)' skipped: the branching condition for this action is not satisfied."

     

     

  • Mira Ghaly Profile Picture
    11,409 Moderator on 29 Jan 2021 at 11:29:02
    Re: How to get Date format to work when sending Forms via email

    @Tuukka 

    I believe you need to add a condition to check if the field is not null before applying the format

    Mira_Ghaly_0-1611919729437.png

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 736 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 396 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard
Loading complete