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 / Filtering using Get Re...
Power Automate
Unanswered

Filtering using Get Records from a D365FO Connector

(0) ShareShare
ReportReport
Posted on by

I'm trying to filter D365FO in a Flow by using the Get Records item.
Im using the Entity "Customers" and I'm trying to retrieve all records where OnHoldStatus is gretaher than 0.
In fact, this field is originally an Enum field in D365FO
I have tried following Filter Query expressions:

1.- Onholdstatus gt 0

2.- Onholdstatus eq 'All'

But no one of both works. When running flow I get an error of mismatch types of comparison items, with integer or stream.

How can I formulate the Filter Query Expression properly?

 

Thanks.

 

 

 

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at
    Re: Filtering using Get Records from a D365FO Connector

    Hi @agperezc,

     

    Could you please share more details about the OnHoldStatus column in the sharepoint list?

    I have made a test on my side to create a OnHoldStatus column in the sharepoint list as below:

    Capture.PNG

     

    Please refer to screenshot below to create the flow:

    Capture.PNG

    The expression in the Filter array as below:

    @greater(int(item()?['OnHoldStatus']?['Value']), 0)

    The flow would run successfully as below:

    Capture.PNG

     

    Best regards,

    Alice

     

  • GabrielStJohn Profile Picture
    on at
    Re: Filtering using Get Records from a D365FO Connector

    Hey, @agperezc!

    Thank you for posting on the Flow Community Forum! It appears as though @v-yuazh-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • dynamiacs Profile Picture
    63 on at
    Re: Filtering using Get Records from a D365FO Connector

    hi,

     

    for enum fields you have to filter in another way than "normal" fields.

     

    Try this one for your topic:

     

    OnHoldStatus gt Microsoft.Dynamics.DataEntities.CustVendorBlocked'No'

     

    Then you will receive f.e. the following Customer Accounts:

    Account OnHold
    US-008 Invoice
    US-041 All
  • PytByt Profile Picture
    943 on at
    Re: Filtering using Get Records from a D365FO Connector

    Hi @agperezc 

    Have you solved your issue? 
    I have similar issue which is:
    1. Get records from D365FO Entity

    2. Filter it based on status

    3. Store it in Sharepoint

    Could you please help me?

    Thanks.
    pytbyt

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard