Hello Folks -
I'm having an issue filtering a SP List. I have a flow that should retrieve all row items from a SP greater than or equal to a certain date.
My "Filter Query" on my Get Items is as follows:
Create ge 'formatDateTime(addDays(utcNow(),variables('DayOfWeekVar')),'yyyy-MM-dd')'
My day of DayofWeekVar is currently set to -3. Therefore, it reads:
Created ge '2020-11-23'
However, I have items in the list where Created date is 11/25. What would be the reason those rows are not returning?
FYI:
Content Type | App Created By | App Modified By | Attachments | Workflow Instance ID | File Type | Created |
Item | 11/25/2020 | |||||
Item | 11/25/2020 |
Solved! Go to Solution.
Hi @simms7400,
Have you done any formatting or conversion with your Created field? Otherwise it probably still is in UTC time format.
Try and change the formatting of your expression to UTC instead:
Created ge 'formatDateTime(addDays(utcNow(),variables('DayOfWeekVar')),'yyyy-MM-ddTHH:mm:ssZ')'
https://support.microsoft.com/en-us/help/4557244/converting-time-zone-in-microsoft-power-automate
Hi @simms7400,
Have you done any formatting or conversion with your Created field? Otherwise it probably still is in UTC time format.
Try and change the formatting of your expression to UTC instead:
Created ge 'formatDateTime(addDays(utcNow(),variables('DayOfWeekVar')),'yyyy-MM-ddTHH:mm:ssZ')'
https://support.microsoft.com/en-us/help/4557244/converting-time-zone-in-microsoft-power-automate
Hi @simms7400
Interesting question. I never had issues with the above format which you using. I just tried now and I am getting the results as expected. Could you please try MM-dd-yyyy format and see whether that works?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHello @simms7400 ,
try to add 'Compose' action after the 'Get items' and put the 'Created' dynamic content inside. This way you'll see in the flow run history what format the 'Created' date has and you can adjust the format in the expression on the right side of the condition accordingly.
Thank you everyone. It seems to be a combination of the date format as well as UTC format. It is now working correctly. Thank you for all of your help!!!
Hi @simms7400
Could you please explain what exact fixes you did to resolve this? That would help others if they looking for similar issue.
Thanks a lot
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogThe first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
69 | |
27 | |
22 | |
15 | |
13 |
User | Count |
---|---|
132 | |
43 | |
42 | |
34 | |
31 |