web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Bypass Consent power s...
Power Apps
Unanswered

Bypass Consent power shell script becomes undone - have to run the SET command again in order for application to work.

(0) ShareShare
ReportReport
Posted on by 40

We are having a major issue with a SharePoint list using a customized power apps form.    Whenever a user attempts to go into an existing entry off of the SharePoint list, it asks for the "Allow" connections every time (not just once).   It also does not even bring up the list item in display mode, rather acts as if it is a new record.   If they back out, click on the list item again, then it goes in correctly.  Very inconsistent.

 

However, once we run the Set -AdminPowerAppApisToBypassConsent powershell script, it seems to fix this issue.   But then, for some unknown reason, this setting becomes "undone" (false) instead of "true". 

 

They have "edit" access to the list and with one user, we even gave them full control.    

 

This is on an application we just built and went live with on Monday.  At least 2 other applications that are new (not yet live) have this exact same issue!   

 

I would love to go back to writing true Power Apps (using the SharePoint list as a source vs customized forms), but that has the 2000 record limit for the search function.

 

Thanks for any help you can provide!!!!!!

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    I hear you! Building PowerApps, for me, is so much better than custom forms. 

    I would recommend trying this

     

            Build a flow that has a get items and set it up like so

    TheRobRush_0-1689793236403.png

    the example list in my photo has about 5k items currently and California Creative is part of the name of a record located in the first 100 records created, running this flow returns the correct result even with 5k items in the list. 

    you could send a search term from powerapps to flow, and then return the resulting records back to powerapps via the same flow.

    replacing the search term California Creative with Test Me returns the last 3 items added to the list, which I just place din now as a test.

    Syntax is 

    substringof('Test Me', SchoolName)

     

     where Test me is your search term and SchoolName is the column to search

  • pullesb Profile Picture
    40 on at

    I'm not sure how a power automate flow has to do with my issue of a customized form using power apps off a Sharepoint list??

  • TheRobRush Profile Picture
    11,128 Moderator on at

    You said, in your final statement, youd prefer building actual PowerApps again but cannot do it with the 2k limit for using search... Do what I showed you above and you can bypass the limit using search via flow.

  • pullesb Profile Picture
    40 on at

    Ah - gotcha!    Thanks!    

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard