cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Continued Contributor
Continued Contributor

Powershell vs. PowerApps Admin Connections

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Highlighted
Community Support
Community Support

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Continued Contributor
Continued Contributor

Re: Powershell vs. PowerApps Admin Connections

-Deleted-

Highlighted
Continued Contributor
Continued Contributor

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

Highlighted
Helper V
Helper V

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...

 

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

 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,040)