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 Apps / Powershell vs. PowerAp...
Power Apps
Answered

Powershell vs. PowerApps Admin Connections

(0) ShareShare
ReportReport
Posted on 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:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    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,

  • tianaranjo Profile Picture
    497 on at

    -Deleted-

  • tianaranjo Profile Picture
    497 on at

    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

  • max81 Profile Picture
    860 on at

    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?

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard