Install and set up the Expense Reimbursement template
As a Power Platform admin, you install, set up, and deploy the Expense Reimbursement template solutions for your organization. This article covers the following steps:
Step 1: Review prerequisites
Make sure that you have the required license and an environment and data policy in place before you start.
Confirm licensing
Make sure that your organization has the necessary licensing to use enterprise templates. Power Apps usage rights that are included with Microsoft 365 and Office 365 licenses aren't sufficient. You need one of the following Power Apps plans:
- Power Apps Premium
- Power Apps per app
- Power Apps per app pay-as-you-go-meter
- Power Apps use rights included with Dynamics 365 licenses
Tip
A free Power Apps Developer Plan is a great way to install the template for evaluation purposes.
More license details are available in the Microsoft Power Platform Licensing Guide.
Create environment and data policies
It's important to have a cohesive environment and data policy and to ensure required resources in place.
Administrators
Make sure that admins with the necessary privileges are available to assign licenses and create environments:
- Microsoft Entra ID Global or tenant User Administrator to assign Power Apps or Power BI licenses
- Power Platform Administrator to create environments
Environments
Follow application lifecycle management (ALM) best practices in creating and managing environments.
- Make sure that a Power Platform environment is set up with a Dataverse database.
- Make sure that environment maker security role privileges, at a minimum, are assigned to the user who installs the solutions in that environment.
Data loss prevention policies
Make sure that the environment has access to the connectors used by the Expense Reimbursement template:
Step 2: Create connections
Cloud flows need specific connection references to work correctly. Connection references are included in the solution, but connectors often need to be set up manually. You need to set up three new connections for the Expense Reimbursement app.
It's best to create the connections before you import the solution. If you create the connections during import, you have to jump back and forth between browser windows.
Sign in to Power Apps.
Go to Connections and select + New Connection to create new connections with each of these connectors:
Learn how to manage connections in canvas apps.
Step 3: Create approvals database
The Expense Reimbursement solution leverages Power Automate Approvals to approve or reject requests.
By default, Power Platform environments aren't set up with the required database for approvals. The database is created the first time a flow with the Approvals connector is run in that environment by an administrator.
Take these steps to create the database for approvals:
- Go to the Power Automate maker portal and select your targeted deployment environment.
- Select + Create on left pane.
- Select Instant cloud flow underneath the Create from blank section.
- Choose Manually trigger a flow and then select Create.
- Select + New step.
- Search on Approvals and choose Create an approval.
- Enter the following properties on the Create an approval step:
- Approval type – Approve/Reject – First to respond
- Title – Test
- Assigned to – select your email address
- Select Save.
- Select Test Manually and then Test again.
- Select Continue and then Run flow, followed by Done.
- Delete the flow you just created, as it is no longer needed.
Learn how to get started with Power Automate approvals.
Note
It can take a few minutes for the database provisioning to complete, and you'll notice this delay the first time you run this flow. Once you complete this first-time flow run, subsequent approval flows will be faster.
Step 4: Install solution files
You have two options for installing the Expense Reimbursement template:
- Select Get it now on the template's AppSource page and an installation window opens automatically in the Power Platform admin center.
- Download a managed or unmanaged version of the solution files and manually import them into your environment.
Tip
Go to the Templates-for-Power-Platform GitHub project site to log your questions or issues and get support for the Expense Reimbursement template.
Install from AppSource
AppSource is a Microsoft digital storefront. Take these steps to go through the AppSource install process:
Go to the Expense Reimbursement template in AppSource and select Get it now.
In the Install Expense Reimbursement window in the Power Platform admin center, select the developer environment that you prepared in the review prerequisites step.
Agree to the Terms and Privacy statements when prompted.
Select Install. Two solutions are installed in your environment:
- Employee Experience Base
- Expense Reimbursement.
Go to the Expense Reimbursement overview article to learn more about the two solutions.
Download and manually install solution files
Download solution files.
Sign in to Power Apps and select the environment you prepared in the review prerequisites step.
In the left pane, select Solutions.
Select Import solution, and then find and select the
mpa_EmployeeExperienceBase
file you downloaded.Select Next, and then select Import.
After you receive the message that the import was successful, repeat steps 4 and 5 to import the
mpa_ExpenseReimbursement
file you downloaded.Select Next and Next again.
For each of the connections listed, select the connection that was created in the import steps.
Select Next.
Skip the environment variable setup for now. The required URL values only become available after the apps are imported into the environment.
Select Import to start importing the Expense Reimbursement solution.
Step 5: Assign Security Roles
The Expense Reimbursement solution contains two security roles.
Administrator: Assign this role to users who need access to the expense reimbursement data in the model-driven administration app. Admins can:
- View expense reimbursement data
- Process expense reimbursements
- Create new refund categories and programs
- Delete expense reimbursement data
User: Assign this role to all users who will view and submit expenses through the Expense Reimbursement canvas app.
All licensed users, whether or not they're members of a security group, must have a security role assigned. If users don't have a security role, they get a "data access denied" error when they try to run the app. Users can't access environments until they're assigned at least one security role for that environment.
Assign security roles in the Power Platform admin center.
Sign in to the Power Platform admin center.
In the left side panel, select Environments.
Select the environment where the solution is installed.
Select Users > See all.
Select user(s), select Manage security roles, and then select the appropriate roles for each user.
Select Save.
Want to learn more about setting up and managing users? Start here:
- Learn how to manage application users in the Power Platform admin center.
- Learn how to control user access to environments with security groups and licenses.
Step 6: Turn on cloud flows
Verify that the cloud flows are turned on in the newly installed Expense Reimbursement solution. Turn on any flows that are not already set to on.
In Power Apps, in the left side panel, select Solutions.
Select the Expense Reimbursement solution.
In the left side panel, select Cloud flows.
Select each of the four flows and make sure it's turned on.
Step 7: Share the apps
Share the Expense Reimbursement app with the users in your organization.
Tip
Share the app with the Expense Reimbursement program managers first so that they can configure the app to meet your organization's needs. After that configuration is complete, share the app to the wider organization.
Go to Power Apps and select the environment that contains the solution.
In the left side panel, select Solutions.
Select Expense Reimbursement.
In the left side panel, select Apps.
Select the Expense Reimbursement canvas app and select More actions (…) > Share.
Search for and select the security group or individuals who need access to the app. You can also verify user security roles here.
Add an optional email message.
Select Share.
More information: Learn how to share a canvas app with your organization.
Note
If the Expense Reimbursement app isn't shared with you and you can't access it directly in Power Apps, contact your administrator.
Step 8: Enable Copilot (optional)
Copilot for model-driven apps in Power Apps is a next-generation AI assistant for app users to get insights about the data in their apps through conversation in natural language. As an expense reimbursement program administrator or reviewer, leverage Copilot to help you get insights on the expense reimbursement data while taking action. Follow these steps to turn Copilot on within your environment:
- Go to Power Platform admin center.
- Select Environments on the left pane and then select the environment where the solution was installed.
- Ensure the environment Release Channel is set to Monthly by following the Changing release channels for model-driven apps guidance.
- Select the Settings.
- Expand the Product section and select Features.
- Underneath the Copilot section, change the Allow users to analyze data using an AI-powered chat experience in canvas and model-driven apps to On.
Learn how to use Copilot chat in model-driven apps
Step 9: Turn on auditing (optional)
Auditing isn't required, but we recommend turning it on so that it's easy to see who creates and updates records in the future.
Go to the Power Platform admin center and select the environment where the solution is installed.
Select Settings, and then select Start Auditing.
Next step
Learn how to manage the Expense Reimbursement app.