Skip to main content
Community site session details

Community site session details

Session Id : QoERZV4SzZJNkGq/xngvEh
Power Automate - General Discussion
Unanswered

ODATA filter to check if a value is equal in a column

Like (0) ShareShare
ReportReport
Posted on 15 Jun 2022 09:36:34 by 16

Hello!

 

I am trying to build an ODATA filter that checks if a value is present in a newly inserted list column entry after a PowerApp form submission that notifies my supervisor of an approval via MS Approvals.

 

I have 2 columns on my SharePoint List:

- TR-ID

- TRIDD_2


TR-ID has an auto generated entry and is connected to TRIDD_2 so that the ID numbers can be passed around and followed via an auto-increment formula I've implemented ("AA10-TRIDD_2-2022", an example would be "AA10-1234-2022") while TRIDD_2 is in charge of auto incrementing the ID itself (1234)

 

In my Power Automate "Get items" I want to get items only related to the newest entry based on the ID that I have received from the latest entry, example if I were to enter an new entry in the form my Flow would automatically know that the latest entry on the SharePoint List is that latest entry. My goal is to mitigate any possibility of wrongfully given user entries (if me and my coworker enter items into the Form, our managers should get our entries on the list via Approvals and not the other way around.)

 

What I'm trying to do is when the "Get items" is triggered to filter the TR-ID (AA10-1234-2022) with the TRIDD_2 (1234) and to get that exact file to be sent to the Approvals app for proper management of tasks and data entries.

 

And I'm stumped. I hit a brick wall and I'm down to using "ID desc" in my Order by however that has issues with getting wrongful information.

  • Vuzeo Profile Picture
    16 on 15 Jun 2022 at 12:52:35
    Re: ODATA filter to check if a value is equal in a column

    The form users fill out is for submitting documents digitally or without any documents in case they deliver it to the office. The trigger is responsible for extracting documents as outlined in my screenshot (2nd and 3rd step).

    If I take out the trigger, those two will not work:

    ahasanefendi_0-1655297547258.png

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on 15 Jun 2022 at 12:48:12
    Re: ODATA filter to check if a value is equal in a column

    @Vuzeo  as per your flow Filter will also not work. And i am thinking why you are using this trigger? Why not using when item is created in list?

    Any specific reason.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Vuzeo Profile Picture
    16 on 15 Jun 2022 at 12:21:09
    Re: ODATA filter to check if a value is equal in a column

    Filter array? Can you please provide an explanation

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on 15 Jun 2022 at 12:18:50
    Re: ODATA filter to check if a value is equal in a column

    @Vuzeo i am not getting any context how OData will help you here?. if possible use filter array which can help you here.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Vuzeo Profile Picture
    16 on 15 Jun 2022 at 12:08:13
    Re: ODATA filter to check if a value is equal in a column

    @Hardesh15,

    I am facing the issue where if more simultaneous users send an entry through the form that my filter with get the wrong entries in the list and apply them in the Approval portion of the flow, mainly trying to prevent the possibility of wrongly gotten list entries. That's why I'm thinking that an ODATA filter could help me resolve this issue.

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on 15 Jun 2022 at 12:04:49
    Re: ODATA filter to check if a value is equal in a column

    @Vuzeo Thanks for Sharing flow screens. Now tell me where you are facing issue?

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Vuzeo Profile Picture
    16 on 15 Jun 2022 at 11:52:33
    Re: ODATA filter to check if a value is equal in a column

    @Hardesh15 

    Main screen:
    ahasanefendi_0-1655293585562.png

    Elaboration:

    ahasanefendi_1-1655293788970.png

    The filter portion:

    ahasanefendi_2-1655293933912.png

     

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on 15 Jun 2022 at 11:42:19
    Re: ODATA filter to check if a value is equal in a column

    @Vuzeo Pls share your flow screens.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Vuzeo Profile Picture
    16 on 15 Jun 2022 at 11:34:28
    Re: ODATA filter to check if a value is equal in a column

    @Hardesh15 I am using "When a file is created" since the automation process relies on a ZIP extraction and file creation on SharePoint.

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on 15 Jun 2022 at 11:30:07
    Re: ODATA filter to check if a value is equal in a column

    @Vuzeo What kind of trigger you are using here. If you are using trigger- When an item is created this will automatically take your latest details from SharePoint List. 

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete