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 : 3oT3bQlCqIfG8awy2srt1l
Power Apps - Building Power Apps
Answered

Powershell vs. PowerApps Admin Connections

Like (0) ShareShare
ReportReport
Posted on 18 Sep 2019 21:28:57 by 497

Greetings,

 

I have run both the GetAdminApps from:

  • An app using the PowerAppsforAdmins connection
  • PowerShell cmdlet - Get-AdminPowerApp

I expected the total count to be equal. However, the PowerShell cmdlet always returns a < total than running via app connection. 

Can somebody explain Why difference in the total?

 

Thank you.

aka@kickingApps

Categories:
I have the same question (0)
  • Mx81 Profile Picture
    860 on 22 Apr 2020 at 15:18:33
    Re: Powershell vs. PowerApps Admin Connections

    Hi @tianaranjo : I'm facing the same problem.

    Flow.ListFlowsInEnvironment is only giving me 250 Flows back.

    PowerAppsforAdmins.GetAdminApps can give up to 1100 apps back, or with the skiptoken even more.

     

    Please have also a look into my post:
    https://powerusers.microsoft.com/t5/Building-Power-Apps/Flow-ListFlowsInEnvironment-don-t-return-all-flow-still-not/m-p/482687

     

    @v-xida-msft Any news to that point?

     

  • tianaranjo Profile Picture
    497 on 19 Sep 2019 at 15:18:29
    Re: Powershell vs. PowerApps Admin Connections

    Disregard; I am getting an error when I enteer {'$top': 1100}. 

    To clarify, are you saying that there is not any way to get greater than 250 records when running from within the PowerApp?

    image.png

  • tianaranjo Profile Picture
    497 on 19 Sep 2019 at 15:08:03
    Re: Powershell vs. PowerApps Admin Connections

    -Deleted-

  • Verified answer
    v-xida-msft Profile Picture
    on 19 Sep 2019 at 07:17:06
    Re: Powershell vs. PowerApps Admin Connections

    Hi @tianaranjo ,

    Could you please share a bit more about your scenario?

    Could you please show more details about the PowerApps PowerShell cmdlet you used?

     

    Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. On my side, the amount of the result the Get-AdminPowerApp -EnvironmentName 'Default-9e51064f-xxxx-41a2-xxxx-9785a9d6c706'  powershell cmdlet returns is more than ('>') the amount the PowerAppsforAdmins.GetAdminApps("Default-9e51064f-xxxx-41a2-xxxx-9785a9d6c706").value formula returns in PowerApps app.

     

    The PowerShell cmdlet looks like below:PowerShell CmdletPowerShell Cmdlet

    The PowerApps formula as below:9.JPG

     

    10.JPG

     

    Currenly, within PowerApps, there is a records retrieve limits within the PowerAppsforAdmins.GetAdminApps() function. In default, it could only retrieve 250 records at most once time.11.JPG

     

    On your side, please check if you have typed a proper PowerApps PowerShell cmdlet in your PowerShell box. Also please check if you have added additional restricts to your Get-AdminPowerApp cmdlet.

     

    Best regards,

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473