cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
A_San
Helper I
Helper I

Global Approver for multiple apps within the same org

We have few apps like "Training Request Form", "Merit Award Form" etc. For all these forms, the approvers are same. The back end of all these forms are SharePoint Lists. Is it possible to create a Global Variable for Approvers so that can be used everywhere instead of their email/user ids ?

3 REPLIES 3
Pstork1
Dual Super User
Dual Super User

Power apps has no capability to create a global variable across multiple apps.  The best workaround would be to create a SharePoint list where you can add all the approvers and then set the apps to use that list when assigning approvers.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thank you @Pstork1 . So does that mean, the approver list from Sharepoint can be used in the power apps forms? Like some fields are visible only to approvers in the forms.

Pstork1
Dual Super User
Dual Super User

Since the list won't change frequently and will be used repeatedly in the app, I would add something to the OnStart of each app that reads the list and stores it in a local collection.  If you ever need to add or remove approvers just edit the list and the next time any of the apps are started they will get the fresh list.  

 

Not sure how you are doing the visibility of specific fields.  I'm assuming you are checking to see if the current user is in that list.  If so, then yes you could use it that way.  But I need to point out that that isn't security since it only applies to the Power App and users can still see all the fields if they go directly to the SharePoint list.  But the Approvers list would just be another data source/Collection that you can use in your app.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,885)