cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Support
Community Support

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
Community Support
Community Support

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

-Deleted-

Continued Contributor
Continued Contributor

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

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (47,537)