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 / Calculating the submis...
Power Automate
Unanswered

Calculating the submission time of a Form is 24 hours or less from date selected

(0) ShareShare
ReportReport
Posted on by 2

I need help with a flow to calculate the time of submission from the date selected in a form. The flow sends an email to the respondent based on the date selected inside the form. For example, if the time of submission and date selected is 24 hours or less they would receive email #1, but if the time of submission and date selected is greater than 24 hours then they would receive email #2. I am new to Power Flow and I don't have any screenshots to share yet.

Categories:
I have the same question (0)
  • yashkamdar Profile Picture
    1,044 on at

    Hello Team,

     

    Here is how you achieve this.

     

    Here is a simple form I created just so I can show you the solution -

     

    I have a simple date picker in this.

    yashkamdar_0-1602869141904.png

     

     

    My flow-

     

    Step 1 and 2 - When a new response is submitted, get response details (self explanatory)

     

    yashkamdar_1-1602869179961.png

     

     

    Step 3 - Condition to check if submission date is equal to today's date

     

    formatDateTime(outputs('Get_response_details')?['body/submitDate'],'yyyy-MM-dd') is equal to Date to be compared against submission

     

    yashkamdar_2-1602869830280.png

     

     

    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!

  • Doby Profile Picture
    2 on at

    Thanks, I tried what you suggested but getting an error message: The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Null'

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
David_MA Profile Picture

David_MA 223 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 205 Most Valuable Professional

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard