Skip to content

Commit 50956d0

Browse files
authored
Add files via upload
1 parent 8357118 commit 50956d0

File tree

2 files changed

+384
-1
lines changed

2 files changed

+384
-1
lines changed
Lines changed: 371 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,371 @@
1+
---
2+
title: Install and configure the Expense Report PowerApps sample | Microsoft Docs
3+
description: Step-by-step instructions for installing and configuring the Expense Report PowerApps sample.
4+
services: ''
5+
suite: powerapps
6+
documentationcenter: na
7+
author: tbag
8+
manager: ''
9+
editor: ''
10+
tags: ''
11+
12+
ms.service: powerapps
13+
ms.devlang: na
14+
ms.topic: article
15+
ms.tgt_pltfrm: na
16+
ms.workload: na
17+
ms.date: 02/20/2018
18+
ms.author: v-tobagi
19+
20+
---
21+
# Install and Configure the Expense Report PowerApps Sample
22+
23+
Step-by-step instructions for installing and configuring the Expense Report PowerApps sample.
24+
25+
Estimated time to complete these steps: **10-15 minutes**
26+
27+
If you would like to see a demonstration of this process please watch this video.
28+
29+
[![Expense Report Install Video](./media/expense-report-install/expense-report-install-video.png)](https://youtu.be/DOR28V5kCkw)
30+
31+
## Expense Report PowerApps sample overview
32+
Track expense reports from submission to approval. Tally line items as individual expenses accrue and submit for approval when ready. This app requires a small amount of setup to make it your own.
33+
34+
![Opening screen of the Expense Report PowerApp](./media/expense-report-install/expense-report-powerapp.png)
35+
36+
Watch this video to see how to use the Expense Report PowerApp Sample.
37+
38+
[![Expense Report Install Video](./media/expense-report-install/expense-report-demo-video.png)](https://youtu.be/h6E9cdrOvMU)
39+
40+
## Prerequisites
41+
42+
1. [Sign up](signup-for-powerapps.md) for PowerApps
43+
44+
## Create the Expenses SharePoint list
45+
46+
This list stores the expense reports.
47+
48+
1. Open a web browser and navigate to https://portal.office.com
49+
2. Log in with an account that has permission to create lists
50+
3. Navigate to the site collection where you want the Expenses list to reside
51+
4. Click the **gear icon** in the top right portion of the web page
52+
5. Click **Add an app**
53+
6. In the **Find an app** textbox, enter **Custom**
54+
7. Click the **search icon**
55+
8. Click the **Custom List** app
56+
9. In the **Name** textbox, enter **Expenses**
57+
58+
**Important:** If you choose a different name for the list make sure you write it down because you will need to substitute it for Expenses everywhere you see it during the installation and configuration process.
59+
60+
10. Click **Create**
61+
62+
### Create CostCenter column
63+
64+
1. Click the **Expenses** list
65+
2. Click the **gear icon** in the top right portion of the web page
66+
3. Click **List settings**
67+
4. Click **Create column**
68+
5. In the **Column name** textbox enter **CostCenter**
69+
6. In the **type of information in this column is** radio button list, select **Choice**
70+
7. In the **Type each choice on a separate line** textbox enter the following values, each on a separate line.
71+
Microsoft
72+
Canviz
73+
8. In the **Default value** textbox, enter **Microsoft**
74+
9. Click **OK**
75+
76+
### Create Comments column
77+
78+
1. Click **Create column**
79+
2. In the **Column name** textbox enter **Comments**
80+
3. In the **type of information in this column is** radio button list, select **Multiple lines of text**
81+
4. Click **OK**
82+
83+
### Create Status column
84+
85+
1. Click the **Expenses** list
86+
2. Click the **gear icon** in the top right portion of the web page
87+
3. Click **List settings**
88+
4. Click **Create column**
89+
5. In the **Column name** textbox enter **Status**
90+
6. In the **type of information in this column is** radio button list, select **Choice**
91+
7. In the **Type each choice on a separate line** textbox enter the following values, each on a separate line.
92+
Open
93+
Pending
94+
Approved
95+
8. In the **Default value** textbox, enter **Open**
96+
9. Click **OK**
97+
98+
### Create ApproverName column
99+
100+
1. Click **Create column**
101+
2. In the **Column name** textbox enter **ApproverName**
102+
3. In the **type of information in this column is** radio button list, select **Person or Group**
103+
4. In the **Require that this column contains information** radio button list, select **Yes**
104+
5. Click **OK**
105+
106+
### Create DateSubmitted column
107+
108+
1. Click **Create column**
109+
2. In the **Column name** textbox enter **DateSubmitted**
110+
3. In the **type of information in this column is** radio button list, select **Date and Time**
111+
4. In the **Require that this column contains information** radio button list, select **Yes**
112+
5. Click **OK**
113+
114+
### Create StartDate column
115+
116+
1. Click **Create column**
117+
2. In the **Column name** textbox enter **StartDate**
118+
3. In the **type of information in this column is** radio button list, select **Date and Time**
119+
4. In the **Require that this column contains information** radio button list, select **Yes**
120+
5. Click **OK**
121+
122+
### Create EndDate column
123+
124+
1. Click **Create column**
125+
2. In the **Column name** textbox enter **EndDate**
126+
3. In the **type of information in this column is** radio button list, select **Date and Time**
127+
4. In the **Require that this column contains information** radio button list, select **Yes**
128+
5. Click **OK**
129+
130+
## Create the Line Items SharePoint list
131+
132+
This list stores the lines items associated with expense reports.
133+
134+
1. Navigate to the same site collection where you created the Expense list
135+
2. Click the **gear icon** in the top right portion of the web page
136+
3. Click **Add an app**
137+
4. In the **Find an app** textbox, enter **Custom**
138+
5. Click the **search icon**
139+
6. Click the **Custom List** app
140+
7. In the **Name** textbox, enter **LineItems**
141+
142+
**Important:** If you choose a different name for the list make sure you write it down because you will need to substitute it for Expense everywhere you see it during the installation and configuration process.
143+
144+
8. Click **Create**
145+
146+
### Create Category column
147+
148+
1. Click the **LineItems** list
149+
2. Click the **gear icon** in the top right portion of the web page
150+
3. Click **List settings**
151+
4. Click **Create column**
152+
5. In the **Column name** textbox enter **Category**
153+
6. In the **type of information in this column is** radio button list, select **Choice**
154+
7. In the **Type each choice on a separate line** textbox enter the following values, each on a separate line.
155+
Food & Beverage
156+
Transportation
157+
Business needs
158+
8. In the **Default value** textbox, enter **Food & Beverage**
159+
9. Click **OK**
160+
161+
### Create Cost column
162+
163+
1. Click **Create column**
164+
2. In the **Column name** textbox enter **Cost**
165+
3. In the **type of information in this column is** radio button list, select **Number (1, 10, 100)**
166+
4. In the **Require that this column contains information** radio button list, select **Yes**
167+
5. Click **OK**
168+
169+
### Create Date column
170+
171+
1. Click **Create column**
172+
2. In the **Column name** textbox enter **Date**
173+
3. In the **type of information in this column is** radio button list, select **Date and Time**
174+
4. In the **Require that this column contains information** radio button list, select **Yes**
175+
5. Click **OK**
176+
177+
### Create Description column
178+
179+
1. Click **Create column**
180+
2. In the **Column name** textbox enter **Description**
181+
3. In the **type of information in this column is** radio button list, select **Multiple lines of text**
182+
4. In the **Require that this column contains information** radio button list, select **Yes**
183+
5. In the **Specify the type of text to allow** radio button list, select **Plain text**
184+
6. Click **OK**
185+
186+
### Create ReportID column
187+
188+
1. Click **Create column**
189+
2. In the **Column name** textbox enter **ReportID**
190+
3. In the **type of information in this column is** radio button list, select **Lookup (information already on this site)**
191+
4. In the **Require that this column contains information** radio button list, select **Yes**
192+
5. In the **Get information from** dropdown list, select the **Expense** list you created
193+
6. In the **In this column** dropdown list, select **ID**
194+
7. Click **OK**
195+
196+
### Edit Title column
197+
198+
1. Click the **Title** column link
199+
2. In the **Require that this column contains information** radio button list, select **No**
200+
3. Click **OK**
201+
202+
## Download the Expense Report PowerApp
203+
204+
1. In a web browser, navigate to the following link
205+
206+
http://pappsfeprodwestuscontent.blob.core.windows.net/sampleapps/myexpenses/docs/MyExpenses(SP_List).zip
207+
208+
2. Download the Expense Report PowerApps Sample package and save it to your machine
209+
210+
## Create Connections
211+
212+
1. In a web browser, navigate to https://web.powerapps.com
213+
2. Sign in by providing the same credentials that you used to sign up
214+
3. In the menu on the left, select **Connections**
215+
216+
### Create Approvals Connection
217+
218+
1. Click **+ New connection**
219+
2. In the **Search** textbox, enter **Approvals**
220+
3. Select **Approvals** in the list
221+
4. Click **Create**
222+
223+
### Create Office 365 Outlook Connection
224+
225+
1. Click **+ New connection**
226+
2. In the **Search** textbox, enter **Office 365 Outlook**
227+
3. Select **Office 365 Outlook** in the list
228+
4. Click **Create**
229+
5. In the popup window, select the account you logged in with
230+
231+
### Create SharePoint Connection
232+
233+
1. Click **+ New connection**
234+
2. In the **Search** textbox, enter **Outlook**
235+
3. Select **SharePoint** in the list
236+
4. Click **Create**
237+
5. In the popup window, select the account you logged in with
238+
239+
## Import the Expense Report PowerApp
240+
241+
1. In a web browser, navigate to https://web.powerapps.com
242+
2. Sign in by providing the same credentials that you used to sign up
243+
3. In the menu on the left, select **Apps**
244+
4. Click **Import package(preview)**
245+
246+
![Import package screen](./media/expense-report-install/import-package.png)
247+
248+
5. Click the **Upload** button and select the PowerApp package you downloaded in previous steps
249+
6. For the **App** and **Flow** resource types, set **IMPORT SETUP** to **Create as new**
250+
7. For the **SharePoint** and **Outlook** connections, set **IMPORT SETUP** to **Select during import**
251+
252+
![Import settings screen](./media/expense-report-install/import-settings.png)
253+
254+
8. Click the **red icon** for the **SharePoint Connection**
255+
9. In the connections list, click the item with your username
256+
![Import settings screen](./media/expense-report-install/import-settings-sharepoint.png)
257+
10. Click **Save**
258+
11. Click the **red icon** for the **SharePoint Connection**
259+
12. In the connections list, click the item with your username
260+
![Import settings screen](./media/expense-report-install/import-settings-approvals.png)
261+
262+
13. Click **Save**
263+
14. Click the **red icon** for the **Office 365 Outlook Connection**
264+
15. In the connections list, click the item with your username
265+
![Import settings screen](./media/expense-report-install/import-settings-office365outlook.png)
266+
16. Click **Save**
267+
268+
**Tip**: When you are done, it will look like this.
269+
270+
![Import settings screen](./media/expense-report-install/import-settings-done.png)
271+
272+
17. Click **Import** and wait until the process is complete
273+
274+
![Import settings screen](./media/expense-report-install/import-done.png)
275+
276+
## Configure the PowerApp to use the SharePoint lists
277+
278+
1. In the web browser, click **Apps**
279+
2. Click the **ellipses** next to the Expense Report PowerApp
280+
3. Click **Edit on the web**
281+
4. Click **Allow**
282+
283+
### Delete connections
284+
1. Click **View**
285+
2. Click **Data sources**
286+
3. In the **Data** pane, click the **ellipses** next to **Expenses**
287+
4. Click **Remove**
288+
5. In the **Data** pane, click the **ellipses** next to **LineItems**
289+
6. Click **Remove**
290+
291+
### Expenses list
292+
293+
1. Click **View**
294+
2. Click **Data sources**
295+
3. In the **Data** pane, click **+ Add data source**
296+
4. Click **+ New connection**
297+
5. Select **SharePoint**
298+
6. Click **Create**
299+
7. In the **Recent sites** list, select the SharePoint site where you created the Expenses List
300+
**Tip**: If the site does not appear in the list, enter the URL to the SharePoint site in the textbox and click, **Go**.
301+
8. In the **Search** textbox at the top of the list enter **Expenses**
302+
9. Check the checkbox next to the **Expenses** list
303+
10. Click **Connect**
304+
305+
### LineItems list
306+
307+
1. Click **View**
308+
2. Click **Data sources**
309+
3. In the **Data** pane, click **+ Add data source**
310+
4. Click **+ New connection**
311+
5. Select **SharePoint**
312+
6. Click **Create**
313+
7. In the **Recent sites** list, select the SharePoint site where you created the LineItems List
314+
**Tip**: If the site does not appear in the list, enter the URL to the SharePoint site in the textbox and click, **Go**.
315+
8. In the **Search** textbox at the top of the list enter **LineItems**
316+
9. Check the checkbox next to the **LineItems** list
317+
10. Click **Connect**
318+
11. Click **File**
319+
12. Click **Save**
320+
13. Click **Publish**
321+
14. Click **Publish this version**
322+
323+
## Modify the Flow
324+
325+
1. In the menu on the left, click **Flows**
326+
2. If prompted to sign in, sign in by providing the same credentials that you used to sign up
327+
3. Select **My flows** in the top menu
328+
4. Next to the **ApproveExpense** Flow, click the **pencil icon**
329+
330+
![Edit Flow screen](./media/expense-report-install/edit-flow.png)
331+
332+
5. Expand the **Get items** action
333+
6. Change the **Site Address** and **List Name** to match the Expense SharePoint list you created
334+
335+
![Edit Flow screen](./media/expense-report-install/edit-flow-getitems.png)
336+
337+
**Tip**: You don’t need to type it manually, you can choose it in the dropdown lists.
338+
339+
7. Expand the **Condition**
340+
8. Expand the **If yes** section
341+
9. Expand the **Change item status to Approved** action
342+
10. Change the **Site Address** and **List Name** to match the Expense SharePoint list you created
343+
344+
![Edit Flow screen](./media/expense-report-install/edit-flow-condition-ifyes.png)
345+
346+
**Tip**: You don’t need to type it manually, you can choose it in the dropdown lists.
347+
348+
11. Expand the **If no** section
349+
12. Expand the **Change item status to Open** action
350+
13. Change the **Site Address** and **List Name** to match the Expense SharePoint list you created
351+
352+
![Edit Flow screen](./media/expense-report-install/edit-flow-condition-ifno.png)
353+
354+
**Tip**: You don’t need to type it manually, you can choose it in the dropdown lists.
355+
356+
14. Click **Update flow**
357+
358+
## Play the PowerApp
359+
360+
1. In the web browser, click **Apps**
361+
2. Click the **ellipses** next to the Expense Report PowerApp
362+
3. Click **Open**
363+
364+
Watch this video to see how to use the Expense Report PowerApp Sample.
365+
366+
[![Expense Report Install Video](./media/expense-report-install/expense-report-demo-video.png)](https://youtu.be/h6E9cdrOvMU)
367+
368+
369+
370+
371+

0 commit comments

Comments
 (0)