web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Users Matching Filter ...
Power Automate
Answered

Users Matching Filter Criteria not Returned by List Records Query

(0) ShareShare
ReportReport
Posted on by 1,026

Hi all,

I am having issues fetching Users from an instance of Dynamics 365. I am using the List Records action with a filter of 

isdisabled eq false and accessmode ne 3 and accessmode ne 4 and accessmode ne 5

However, I am not seeing all of the expected results returned. If I run the same query with the exact same filter against the Dynamics 365 Web API I receive all the matching records. Flow is only returning 512 Users though I have also tried explicitly setting the Top value higher than this with no luck.

I have tried this with both the old Dynamics 365 connector and the Common Data Service and they both have the same issue.

Anyone else encountered this and know how I can get the filter to function correctly within Flow?

 

Categories:
I have the same question (0)
  • Brad_Groux Profile Picture
    4,556 on at

    Have you tried building a delay into your Flow? You may be hitting the 1000 API calls per 1 minute limit. Outside of that, if you could provide an expanded screenshot of your Flow and steps, and of any detailed error messages you're receiving we could likely better assist you.

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • LeeHarris Profile Picture
    1,026 on at

    Hi @Brad_Groux 

    Thanks, I was unaware of the 1000 call limit so added a delay to get around this. Unfortunately this did not resolve the issue though. As a test I have created a new Flow which only runs the List Records action (shown below).

    chrome_2019-05-13_11-10-24.png

     

     

    When run via Flow this returns 512 results. If I run the exact same query using the Web API (url below) then I get the expected 787 results.

    https://[Dynamics Client URL]/api/data/v9.0/systemusers?$filter=isdisabled eq false and accessmode ne 3 and accessmode ne 4 and accessmode ne 5

    I am logged in to Flow and Dynamics with the same User so security roles should not be affecting what I can see in the response. Any other ideas on why the query could be returning different results via Flow?

     

  • Verified answer
    LeeHarris Profile Picture
    1,026 on at

    For anyone that might end up on this thread after running into the same issue. This was resolved by enabling Pagination on the List Records step. This can be found in the Settings section (click the elipses on the action).

     

    chrome_2019-05-21_13-26-30.png

     

    Now I am getting all the results back from the query.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 820

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard