Posts

Showing posts with the label power app

Using GenAI to Clean Up Your Power App Naming Conventions

Image
What Providing you, a Power App developer, with the steps to quickly apply theming and naming conventions to all fields within your app, by utilising any GenAI tool. Why After a swift session of adding labels and text boxes and such to your app, and nicely theming one, but then having to apply all the values to other fields, your app probably looks something like this.   At this point, if you are like me, your next steps are: clean up field names re-order tree-view from top to bottom ensure theming matches throughout Depending on the complexity of the app, doing a good job of this could take a whole day. How Add all your fields to your app Theme one perfectly 'View Code' on the Screen and Copy the YAML to Notepad   Open up your preferred GenAI tool - for this exercise I'm using  https://claude.ai/   Enter the following Prompt, before pasting in the code you copied from step 3: I've just built a Power App, but need your help with the following: 1. Naming fields approp...

Power Apps - Check Group Membership For Groups With > 1,000 Members

Image
What There are occasions when it is useful to check inside a Canvas App whether the logged-in user is a member of a specific Security Group. This allows you to implement hide/show functionality for areas of the application that you may only want users/administrators to see. Why The standard method I've used in the past to implement this 'group membership' check is to call the following Connector/Function: Office365Groups.ListGroupMembers() Using this connector, you would first get a list of All the members of a specific security group, then you would do a Filter on that collection to check if the logged in user is one of the Members. However!  That connector only works when group membership is less than 1,000 people, if your group has more than 1,000 members, then there's a chance the app will come a cropper for some users. So below we're going to show you how to do the same check by using MS Graph API calls that all users have access to. How  Using a Graph API cal...