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 / Condition Logic Issue ...
Power Automate
Unanswered

Condition Logic Issue with a Date field

(0) ShareShare
ReportReport
Posted on by 2
I have a flow that works until I add a condition where if the answer Yes to a "Return Request" it requires additional fields like Return POC, Return Location, Return Date... This seems to work as intended.  However, I need to build into the flow for "change request" which will call up the data from a SharePoint list (by the submitter entering the original request ID).  So....I added a condition BEFORE the "Return Request = YES" condition which says If all the "Return data fields are "empty" then Yes = Create a SharePoint List without capturing the Return Fields Data.  If NO = Create a SharePoint List CAPTURING the Return Data.
 
This Condition works if the Return = Yes and the return data fields are populated (as intended).  However, when I test with Return = No and these data fields are empty.
 
With this error:
The 'inputs.parameters' of workflow operation 'Return_Required_-_YES' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/ReturnDate' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.
 
The problem I am seeing is that the condition ALWAYS gives the False expression even though I know I answered the test flow correctly with Return = NO
 
The Return Date seems to be the data field that is causing issues which I am sure has to do something with the date format (but I am guessing).  I also added a compose ABOVE "Get Response Details" to if(empty(triggerOutputs()?['body/Return Date']), 'NA', formatDateTime(triggerOutputs()?['body/Return Date'], 'yyyy-MM-ddTHH:mm:ssZ'))
 
However, I am not sure that is necessary as the whole issue currently is that condition is giving the FALSE expression regardless.
 
What am I missing?
 
My next issue is once I get this condition working properly I have to add another condition that will retrieve data from the form when someone does a "change request" option to it will pull the data fields back in for them to update where needed and resubmit - and for that resubmit to update the data that changed on the task that is created (so we don't get multiple tasks for the same submission)...
Categories:
I have the same question (0)
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    I believe the configuration of your large condition action in the first screenshot may need some adjustments. Are you attempting to verify if the field is empty?

     
     
  • LB-29101251-0 Profile Picture
    2 on at
    so according to your screenshot - that logic doesnt work (see the flow error pic).
     
    I have it built where if the return required is empty then create the Sharepoint list without that data & if the Return date info is NOT empty then create the sharepoint list with that data....  When I attempt to write the condition the way you mention it fails.  However, I dont think the condition I have originally is wrong - the COndition just spits out Expression = False even when it should = True...

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard