I had to build some app with confidential contents for different user groups. Some contents may only be visible to a specific group of people.
First of all I created two different security groups in O365. Then I got the groupId through PowerShell (you could also use AzureAD) Connect-MsolService Get-MsolGroup | ? displayname -like “DisplayName”
Use the “OnStart” property of the app to load your group memberships into collections: ClearCollect(myUsers,Office365Groups.ListGroupMembers(“groupId”).value)
Now put the visible property of the element to hide to following: If(User().Email in myUsers.mail,true,false)
That’s it. It’ll check, if the current logged on user is in the collection of the group members and based on that displays content or not.
Out of the box PowerApps offers only a small palette of colors you can choose from. But since most companies have some design guidelines, specific colors may be required. There is already a uservoice available for that topic: Link to user voice
For the time being here is a workaround. 1. Save the .msapp file to your computer (File – Save as) 2. add the ending .zip to the download file 3. open the package (do NOT extract) with e.g. WinRar 4. edit the file Publishinfo.json (in folder Resources) and change the color code
5. save a copy of the file to your local drive 6. now DRAG&DROP the modified file into the package (do not extract and re-pack, it will not work) 7. remove the .zip ending from the package 8. in PowerApps EDIT the app you want to change 9. go to File – Open and upload the modified .msapp package 10. go to File – Save and click on “Raplace existing app here” 11. Publish the app
I had the requirement to have a list input form in SharePoint online, that contains “Scope”, “Category” and a “Subcategory”. Of course – to have it end user friendly – these dropdowns had to be cascading.
First of all: as of today, cascading dropdowns in PowerApps only works smooth with TEXT only values!! (yes, it’s a real mess) So how to prevent the user from typing mistakes with text only fields? –> Provide the user a lookup input interface and create the text only values with a simple Flow.
First of all create the lists – 3 simple lists with Title only for the lookup values and 2 lists for mapping
In the mapping lists make the Title not required, add 2 lookup columns that are required and 2 additional columns for the text value
Create a simple Flow for each of the two mapping lists, that updates the text columns, that we’ll use later for our dropdown values
Then create a target list (also text only fields for these three “dropdown” columns!) Of course all other columns can be treated as standard.
In the main list click on “Customize Form” under PowerApps menu
Unlock the 3 Data Cards under “Advanced”, replace the text input controls with dropdown controls and rename them to something meaningful like “ddScope”, “ddCategory” and “ddSubCategory”
set the “UPDATE” property of the data cards to the name of the SP field to be updated with the value
Now modify the “Items” property of the new dropdown fields.
(if you want to sort the values, you can put a SortByColumns() function around the filter formula)
Now the lookups are already working, but if you click on Save, the values are not written to SharePoint. To fix this, we have to re-add the original columns to the form. When added again, unlock them under Advanced and set the “Default” property to the value of the dropdowns.
I had the need to give our users a way, to register external users through the SharePoint interface for a custom solution also based on SharePoint.
It was a little bit tricky to get a token from Graph to use it in the next action.
To save your time, I document it here…
register an app on https://apps.dev.microsoft.com/
make sure, you grant the application appropriate permissions in Azure AD. In my case it was “User.ReadWriteAll” (application permission!)
then generate a password and also note down the application ID (you need it later);
in Azure AD grant the application the admin consent for the permissions!
In Flow add an action “HTTP Request”
Note that the body content must be URL encoded
Now you have to get the token out of the response;
use the action Initialize Variable and a custom expression (where ‘GetAccessToken’ is the name of the action from before!)
again use an action HTTP Request to do the POST
(2 votes, average: 4.50 out of 5)