cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
tianaranjo
Level 8

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

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:8.JPGPowerShell 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

3 REPLIES 3
Community Support Team
Community Support Team

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:8.JPGPowerShell 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

tianaranjo
Level 8

Re: Powershell vs. PowerApps Admin Connections

-Deleted-

tianaranjo
Level 8

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

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,167)