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 / Get Items from SharePo...
Power Automate
Unanswered

Get Items from SharePoint not finding column

(0) ShareShare
ReportReport
Posted on by 12

Hi all,

 

I've setup a flow to go through a SharePoint list and delete items from it where a column called "End_Date" is less than today's date.  The flow uses Get Items to find the List, and filter out End_Date values using an expression (all shown in the photo attached).

 

The trouble is, it can't find the column.  I've tried pointing it to another column (Start_Date), and it works.  I've tried re-ordering the columns in the SharePoint list incase it scans the column names alphabetically.  

 

Has anyone else experienced this happening?  

 

Thanks


Flow overviewFlow overview

 

 

 

 

 

 

 

 

 

 

 

 

 

 

List ColumnsList Columns

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Did the column exist before you added the Get Items to the Flow?  Try removing the Get items action and anything else that uses the SharePoint connector.  Then re-add it into the Flow.  Also, make sure that the All Items view has the column you want included in the view.

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @IanS 

    If End Date is a calculated column then that is the issue - you won't be able to use a calculated column in the OData filter.

     

    As a work around, you can re-create the calculation in your Flow.  For example, if the calculation for end date -s the starte date plus 30 days, take that into account in the expression in your filter.

     

    If you need an example, please let me know. 

  • IanS Profile Picture
    12 on at

    The column did exist before setting up the flow.  I checked the All Items view, and it's definitely in there (the photo in the OP shows the all items view).  I've just re-created the flow from scratch and it's failed again

  • IanS Profile Picture
    12 on at

    Hi Scott,

    The column isn't calculated in Sharepoint.  It's automatically added to the List from a separate Flow that takes data calculated in an excel spreadsheet.

    The duration between the start and end dates isn't consistent either - so using a calculation in the expression (i.e. Start Date-30) wouldn't be as practicable.

    Cheers,

    Ian

  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at
    Ok - then the issue is likely how you are referring to the column - you usually need to use the columns internal name.

    Try this - create a Flow that has a button and a Get Items action and run the Flow. In the run history, look at the results of the Get Items action and note how the column is referred to - use that in your OData filter.
  • IanS Profile Picture
    12 on at
    Thanks Scott - that worked. The Flow wanted a different name for it (in this instance it was "Date"). I had to make one minor change to the debugging flow you recommended though - I had to specify what view I wanted the Get Items action to get, otherwise it didn't return any column info. Thanks for all the help everyone!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard