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 :
Power Platform Community / Forums / Power Automate / Pulling Date from Shar...
Power Automate
Unanswered

Pulling Date from SharePoint column to determine update to item

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

I have a flow that I need to update list items based on the date that is set on the 'Start Date' and 'End Date' columns I have set up. I have previously posted about this (linked below), and while the original post did lead me on the right track, something is still not working correctly. Through some experimentation and looking through other posts for guidance, I have set up a flow that is running successfully on the outside, but it's not actually finding the items in my list that I need it to.

 

Basically, my list is tracking events in my organization. So, I need the flow to cycle through the items every day to find any that have the 'Start Date' column equal to [Today], and if so, update that item to the status "Occurring". Then again for the 'End Date', and update to "Completed".

 

Becca_Hayes_0-1692907464716.png

Becca_Hayes_2-1692910326908.png

 

I originally had it set up as the solution from my first post suggested, but for some reason the filter query in the Get Items wasn't registering my column name. So not sure if I was putting it in wrong, but I tried several things and still nothing. So for this flow, I tried just using a condition to update the item if the date in the column was equal to the variable I set up for today's date.

 

Hopefully that all makes sense. Also, I am still not super well versed in building flows so some of the steps I took may be pointless or way off base. Any help is appreciated.

 

 

Solved: Re: Time Expression for Current Date - Power Platform Community (microsoft.com)

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at
    Re: Pulling Date from SharePoint column to determine update to item

    @Becca_Hayes 
    You should always filter your items before using them in an Apply to Each action if possible. If not possible, then you should use a Filter Array.

     

    In order to use a Filter Query, you need to get the internal column name. Please reference this section of a YT Tutorial on how to get the internal column name.

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok
  • Becca_Hayes Profile Picture
    on at
    Re: Pulling Date from SharePoint column to determine update to item

    @creativeopinion 

     

    That is how I originally had it set up, and using the internal column name, but it was still failing. It keeps saying that the expression isn't valid. Here's what the error looks like:

    Becca_Hayes_0-1692970744429.png

     

    I may be writing it out wrong, but I believe this is how I've seen it in other posts. Also, the date in there is from the outputs of the Compose action. I'm not sure what the problem is here. 😕

  • Chriddle Profile Picture
    8,416 Super User 2025 Season 2 on at
    Re: Pulling Date from SharePoint column to determine update to item

    If the date is from a Sharepoint column of type date without time, 08/25/2023 is not formatted correctly for comparison.

    This should be '2023-08-25' or expression utcNow('yyyy-MM-dd')

  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at
    Re: Pulling Date from SharePoint column to determine update to item

    @Becca_Hayes You need to add single quotes around your date. 

    creativeopinion_0-1692973807702.png

    Hope this helps!

     

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok
  • Becca_Hayes Profile Picture
    on at
    Re: Pulling Date from SharePoint column to determine update to item

    @Chriddle 

    So, I had tried that expression before, and it kept saying that my column wasn't valid. I even just now tried making a new column with the same settings as my date columns and put it in that expression and it says the query isn't valid. Am I missing some apostrophes or something? I have just been inputting it as StartDate eq utcNow('yyyy-MM-dd')

     

    Also, the reason I had the date formatted like that was due to me testing things to see what was going wrong in the flow. The date column appears as MM/dd/yyyy in the list when an item is inputted, so I was just trying to figure out any possibility of what could be going wrong. Does the way it appears in the list have nothing to do with the behind-the-scenes formatting? I am apparently still learning many things about SharePoint haha.

     

    Thanks for any input.

  • Chriddle Profile Picture
    8,416 Super User 2025 Season 2 on at
    Re: Pulling Date from SharePoint column to determine update to item

    The appearence in the list does not matter. These dates are always ISO 8601 formatted.

    About the single quotes: If you use the Get item's odata filter query, you need them:

    Chriddle_0-1692974994872.png

     

  • Becca_Hayes Profile Picture
    on at
    Re: Pulling Date from SharePoint column to determine update to item

    @creativeopinion Ah, I can't believe I forgot to put those in there 😑 with that now fixed, the flow is running successfully, but still doesn't seem to be finding any items hitting the criteria, even though I have a test item in there right now that it should be picking up.

     

    @Chriddle Thank you for clarifying that, I wasn't aware. I have corrected the date format, but as I said above, it still doesn't seem to be finding any items.

  • Chriddle Profile Picture
    8,416 Super User 2025 Season 2 on at
    Re: Pulling Date from SharePoint column to determine update to item

    Ups, this obviously must go to "Filter Query"

  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at
    Re: Pulling Date from SharePoint column to determine update to item

    @Becca_Hayes 

    Is your Date/Time column also storing a time? Or just a date? If it's storing a time as well you have to adjust your query.

  • Chriddle Profile Picture
    8,416 Super User 2025 Season 2 on at
    Re: Pulling Date from SharePoint column to determine update to item

    Can you share the output of the Get items action? (Without a filter)

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