SlideShare une entreprise Scribd logo
1  sur  32
Télécharger pour lire hors ligne
Microsoft
Power Apps
A Getting Started Guide
By Paul Barnett
https://powerappsfornewbies.com/
1
Contents
Introduction ......................................................................................................2
What are Power Apps? .....................................................................................3
Create apps in a variety of ways .......................................................................4
Data Sources ..................................................................................................4
How can you get Power Apps?.......................................................................4
Does Power Apps work with SharePoint? .....................................................5
Excel as a data source ....................................................................................5
How good is Power Apps performance?...........................................................5
What kind of apps can I create with Power Apps? ...........................................6
Creating apps ....................................................................................................7
Power Apps controls .......................................................................................10
Adding greater logic to Power Apps projects..................................................13
Publishing the app...........................................................................................14
Let’s create an example app ...........................................................................15
Modify the data source................................................................................15
Put the data source online...........................................................................16
Launching Power Apps.................................................................................17
Saving the app..............................................................................................27
Publish the app ...............................................................................................28
Conclusion.......................................................................................................31
2
Introduction
In this ever-changing connected world, more and more organisations are
enjoying the benefits of working on the move. We can work from just about
anywhere that has a wi-fi connection. Gone are the days when we would need
to come into the office each day to do our daily tasks or attend meetings.
With the advent of Office 365 we can now work remotely and collaborate with
other office colleagues without the need to actually be in the office.
Technology is always changing and moving on. Windows desktop apps have
been all the rage for many years. Then things started to evolve as web apps
became popular. Now we are going through a new stage whereby mobile apps
are the new norm. The whole world is using smart phones for a variety of things.
Historically mobile apps have been difficult to create and there is no real
development platform that has taken off. Microsoft have addressed this issue
with Power Apps and have made things a lot easier. The result is a platform that
allows you to create apps with no code. That said, if you want to do something
a little more advanced, they have given the option to write code. It is not the
kind of code you imagine though. Reams and reams of complicated, confusing
statements are not something you will see in Power Apps.
In this book I will cover the basics of Power Apps so that you will be confident to
explore the product further.
With any new I.T product there is going to be a learning curve and Power Apps
is no exception.
I will show you how to create an app and connect to a data source. You will learn
how to create screens, add and update data in your application.
I will explain the basics of creating an app that can save data using no code as
well as with the kind of code to use for something more advanced.
You will also discover how to publish the app so that it will work on your mobile
device
3
What are Power Apps?
Power Apps is a technology from Microsoft that allows you to create apps that
run in a browser on mobile devices such as a smartphone or tablet. You can also
create browser-based applications for laptop and desktop devices. It is possible
to create rich forms, workflows, and custom mobile apps to meet your business
needs as well as streamline processes.
It was billed as a replacement for InfoPath but has now been taken up for mobile
development by organisations globally. Some may find it to be an online version
of Microsoft Access, but there is little similarity. That said, you can use Power
Apps to replace certain Access systems.
Power Apps allows you to create apps in hours—not months—and these apps
will easily connect to data sources. You will be able to use Excel-like expressions
to add logic. The apps you create will run on the web, iOS, and Android devices.
They are suitable for any device that has a browser such as iPhones or Android
phones, tablets, etc.
Power Apps is not without its faults. There are many improvements that could
be made and thankfully Microsoft are listening and continually improving the
product. It would be nice if apps could be shared with the outside world for
example and not just within users of the organization using Office 365. To be
able to create, sell and distribute apps would be another nice feature. When you
create an app in MS Access, it can be copied and passed to different users
anywhere who happen to be running MS Office. Unfortunately, at the time of
writing this is not the case with Power Apps. Hopefully this will be addressed at
some point.
4
Create apps in a variety of ways
Apps can be created in a variety of ways, although it comes down to simple apps
that require little to no coding or more sophisticated apps that require code to
be used. The simple templates are never enough. There is always a need to go
beyond the auto generated apps.
A simple forms-based app can be created very quickly. Simply connect your data
source and generate the app based on this. A simple app enabling you to add,
edit, delete and update data is generated by Power Apps, ready to be used on a
mobile device. The controls such as text boxes, combo boxes, labels, buttons etc
are automatically added to the screen along with the mechanism for saving data.
For a beginner it is a good starting point. Taking the app apart and looking under
the hood at each part will teach you a lot.
You can also create a non-forms application. This is where you manually create
the screens for your app. A good understanding of coding with Power Apps is
needed here as you will need to do a little more than the simple save command
that is used in auto generated form applications.
Data sources
Power Apps allows you to connect to many data sources. Some examples are
SharePoint, SQL Server, Excel. You can even connect to DropBox, Google Drive
or a variety of data sources you may never have heard of. It is possible to create
your own data source also.
How can you get Power Apps?
Power Apps is part of Office 365. Microsoft offers various subscription packages
and your organisation is sure to find something that meets their needs. It is
possible for an individual to purchase an Office 365 subscription also. When you
sign up to Office 365, you will gain access to a multitude of applications including
Power Apps, SharePoint Online and Flow.
5
Does Power Apps work with SharePoint?
Yes, it does, brilliantly. Create lists in SharePoint to hold your data and within
Power Apps you can easily connect to the list. You can then use your app on your
mobile device to add, update or remove records from your SharePoint list.
If you prefer to work with a database such as SQL Server, it is possible to do this.
You can easily connect to cloud-based SQL AZURE or on premises SQL Server by
using what is known as a Gateway.
Excel as a data source
You can also use Excel as a data source. For many people who are getting started
with Power Apps, this may be the easiest route.
How good is Power Apps performance?
From experience I can say that Power Apps is fast. Much of course depends on
having access to a good internet connection. As internet speeds improve with
5G and beyond, the performance of Power Apps will get even better. Writing or
amending records to a data source is generally pretty fast I find.
Some find a finished Power Apps application can be slow upon start-up. This is
somewhat true, but it depends on what you find acceptable. There is an option
to run commands on start-up, which can slow things down, depending on what
is going on.
6
What kind of apps can I create with Power Apps?
Power Apps is versatile enough to allow us to create apps for a variety of uses.
For example, here are just a few possibilities
• booking room
• Inventory check
• timesheet
• event registration
• barcode scanner-based app
• booking system
You can choose to create an app for a variety of devices
• Phone
• Tablet
• PC/Laptop
Because Power Apps is internet based, there is no need to install a version of
the app on each user’s device. You create the one app, which is hosted on
Microsoft’s Office 365 cloud and then you grant each user access to the app.
7
Creating apps
When creating a Power Apps project, you can choose to have it automatically
generated based on the fields in your data source. Alternatively, you can choose
to build it yourself from scratch. This is my preferred option as I feel it gives me
more control over things.
For example, in a SharePoint list there is an option for creating a Power Apps
project.
To create an app from scratch, you would go to the Power Apps interface and
select the ‘Canvas app from blank’ option.
8
Inside the Power Apps project, you can add new screens and add the controls
such as forms, text boxes, combo boxes etc.
If you add a form to your screen, you will be able to connect the form to a data
source. This will then automatically pull in the fields from your data source. A
form sits on a screen and is basically a placeholder for controls such as text
boxes, labels etc.
9
Does it remind you of Microsoft Access?
The advantage of a form is that the complexities of saving a record is taken care
of behind the scenes. You only need to execute one command -
SubmitForm(FormName).
The other way is to avoid using a form and to drag on the controls and then bind
them to a data source by using code. This is slightly more complex, but gives you
greater control. To save the data back to the data source, you would write code
and use a command called ‘Patch’.
To use the Patch command, you would add in something like the following:
Patch(NameOfDataSource,
Defaults(NameOfDataSource),
{
Title:txtPreName.Text,
DateOfBirth :dtpPreDOB.SelectedDate,
Address1:txtPreAddress1.Text,
Town:txtPreTown.Text,
City:txtPreCity.Text,
As you can see, it looks a little more complex than using a single command to
save, but in actual fact it is fairly easy once you get the hang of it.
10
Power Apps controls
If you have used Microsoft Access, you are probably familiar with the variety of
controls in that application. In Power Apps it is quite similar.
The menu bar at the top of the Power Apps interface lists the controls you can
expect to use when creating your application.
You have the usual array of text boxes, labels, combo boxes, date pickers etc
available for adding to your screens.
11
You can also add grids to hold multiple records.
If charting is your thing then Power Apps has you covered here also.
12
Here is an example of using a Power Apps gallery control. This is essentially a
grid which allows you to display multiple records. Galleries are pretty flexible
and quite easy to use.
Creating a menu is easy in Power Apps.
13
Adding greater logic to Power Apps projects
Power Apps uses Excel like functions and as such there is no official
programming language. That said, if more sophisticated logic is needed then
another Office 365 product can be used – Flow or Power Automate as it is now
called.
This allows you to create what looks like a flow diagram that holds logic such as
setting variables, loops etc. You can pass parameters to it from Power Apps and
also get the results passed back to your application.
14
Publishing the app
Once you have created your masterpiece, it is time to share it to others in your
organisation. That’s easy enough to do in Power Apps and is as simple as clicking
on the ‘Publish’ button. You will be given the option to select users that you
want to share the app with.
You can then use the app on your chosen device.
15
Let’s create an example app
I’m going to now demonstrate how easy it is to create an app. I will be using
Excel as the data source.
I’ve created a simple Excel document of employee details.
Modify the data source
In order for Power Apps to work with Excel data, the data will need to be
presented in table format.
To do that you would need to go to the ‘Insert’ option and select ‘Table’.
Then highlight all the cells in the spreadsheet.
16
Then go to the ‘Design’ tab and under the properties section, give the table a
name. Here I have taken the default name of Table1.
Put the data source online
Now close the spreadsheet and drag the file to your OneDrive.
When working with Excel files, Power Apps will access them online from
OneDrive or OneDrive for Business.
17
Launching Power Apps
Go the Power Apps home screen.
The quickest way to create an app would be to select the ‘Excel Online’ option.
18
It will then ask you to select a connection. Because I saved my document on
OneDrive, I will be selecting OneDrive as the connector.
The OneDrive files will be shown. I would select ‘Employees’.
It will then ask to select a table. Recall I named my table ‘Table1’.
19
Then click the ‘Connect’ button at the bottom right.
Power Apps will then start to create the app.
When done the screen will look as follows:
20
Three screens have been automatically created. You will see them on the left-
hand side in the tree view.
Run the app by clicking on the preview button at the top right of the screen.
21
At the top there are icons for refreshing the screen, sorting the records and also
to add a brand-new record.
22
Clicking on the arrowheads will take you to the record details. So, if I click on
‘Kathy Jones’ I will see…
At the top right there are icons for deleting a record or editing it.
As you can see, I did not have to write any code at all to delete or update a
record.
Click on the pencil icon and you will be able to edit the record.
In edit mode, a tick icon will display. Click it when you have updated the record.
23
Here I changed the name from Kathy Jones to Kathy Mary Jones.
Now if I open the Excel document that I used as the data source; it shows that
the first name has become Kathy Mary. Power Apps has saved our changes
successfully back to the data source.
24
To add a brand-new record, simply click the plus symbol.
In this particular example the fields are in the wrong order, but that can be easily
changed. Normally I would have the name at the top. For now, I have added a
new record for Wendy Watson and saved it.
25
And as you can see from the front screen, Wendy Watson has been added.
If I check the back-end Excel data source I can see that Wendy Watson has been
added there also.
26
By going into edit mode you can make changes to the app screens.
For example, I don’t like having the age showing on the home screen. Click on
the item and press the delete key to remove it.
In this app, forms are used and each form contains what are known as cards. A
card holds the data field.
Click on the screen so that it becomes selected around the edges.
On the right-hand side, click on the properties tab and then click on the ‘Edit
fields’ option.
27
This brings up the fields used on the screen.
Using your mouse, press on a field name and hold down the mouse. Then drag
the field names to where you prefer them to be. This will get reflected on the
screen.
Saving the app
Click on the ‘File’ option on the menu and then select ‘Save’.
Click on the save to the cloud option and give the app a name.
At the bottom right of the screen, click the ‘Save’ button.
28
Publish the app
The first version of the app will automatically be published. As you make changes
to the app, it will require re-publishing. When you save, there will be an option
to publish those changes. It is also possible to roll back to a previous version.
You can view the app on your device by logging into your Office 365 account and
selecting the Power Apps option.
Alternatively, and probably the better way is to install the Power Apps mobile
app to your device. There is a mobile application for Power Apps available and
you can find it by searching in the app stores for both Android and Apple phones.
Once installed, you will need to enter your Office 365 credentials to see your
available Power App projects.
When the app opens, you will see a list of the Power App projects you created.
The one I created for this example is at the bottom of the list.
Here is the app I created.
When you click on the app, it opens at the first screen.
29
As you can see it looks the same on the phone.
When I click on an arrowhead it will take me to the record details.
30
I have given a very basic example of how to create an app using Power Apps. It
is possible to create apps with far more sophisticated functionality.
31
Conclusion
I hope I have given you an idea of what is possible with Microsoft Power Apps.
More and more people worldwide are starting to use this product along with
Office 365. You can really create some powerful applications to support your
business processes. As the world gradually moves to more cloud-based
applications, organisations will see the benefits of adapting and embracing these
new technologies.
Thank you for reading.
If you would like further training from me, here are some related links.
Website: https://powerappsfornewbies.com/
Join my Power Apps course:
https://powerapps.official.academy/#!powerapps-for-complete-
newbies/1/YpVp6/
Facebook: https://www.facebook.com/powerappsforbeginners

Contenu connexe

Tendances

Tendances (20)

Microsoft PowerApps and Flow
Microsoft PowerApps and FlowMicrosoft PowerApps and Flow
Microsoft PowerApps and Flow
 
Introduction to Microsoft Flow & PowerApps
Introduction to Microsoft Flow & PowerAppsIntroduction to Microsoft Flow & PowerApps
Introduction to Microsoft Flow & PowerApps
 
Power apps presentation
Power apps presentationPower apps presentation
Power apps presentation
 
Microsoft PowerApps
Microsoft PowerAppsMicrosoft PowerApps
Microsoft PowerApps
 
Introduction to Microsoft Power Platform (PowerApps, Flow)
Introduction to Microsoft Power Platform (PowerApps, Flow)Introduction to Microsoft Power Platform (PowerApps, Flow)
Introduction to Microsoft Power Platform (PowerApps, Flow)
 
Microsoft power platform
Microsoft power platformMicrosoft power platform
Microsoft power platform
 
Introduction to power apps
Introduction to power appsIntroduction to power apps
Introduction to power apps
 
Power automate a workflow automation platform
Power automate a  workflow automation platform Power automate a  workflow automation platform
Power automate a workflow automation platform
 
Microsoft power platform
Microsoft power platform Microsoft power platform
Microsoft power platform
 
Microsoft power platform
Microsoft power platformMicrosoft power platform
Microsoft power platform
 
Power Platform (Power Automate)
Power Platform (Power Automate)Power Platform (Power Automate)
Power Platform (Power Automate)
 
Power Automate
Power AutomatePower Automate
Power Automate
 
Power platform power automate in a day
Power platform   power automate in a dayPower platform   power automate in a day
Power platform power automate in a day
 
Power Automate Overview
Power Automate OverviewPower Automate Overview
Power Automate Overview
 
An introduction to microsoft power apps
An introduction to microsoft power appsAn introduction to microsoft power apps
An introduction to microsoft power apps
 
Microsoft Power Automate - Approval Flow
Microsoft Power Automate - Approval FlowMicrosoft Power Automate - Approval Flow
Microsoft Power Automate - Approval Flow
 
Getting Started & Driving Success With Power Platform At Scale
Getting Started & Driving Success With Power Platform At ScaleGetting Started & Driving Success With Power Platform At Scale
Getting Started & Driving Success With Power Platform At Scale
 
Innovation morning power platform
Innovation morning power platformInnovation morning power platform
Innovation morning power platform
 
Intelligent automation with Microsoft Power Automate
Intelligent automation with Microsoft Power AutomateIntelligent automation with Microsoft Power Automate
Intelligent automation with Microsoft Power Automate
 
Limitations and Cost of Using Microsoft's Power Platform
Limitations and Cost of Using Microsoft's Power PlatformLimitations and Cost of Using Microsoft's Power Platform
Limitations and Cost of Using Microsoft's Power Platform
 

Similaire à Microsoft Power Apps - A Getting Started Guide

Vesterli hot and_not_whitepaper_wildcard_2013
Vesterli hot and_not_whitepaper_wildcard_2013Vesterli hot and_not_whitepaper_wildcard_2013
Vesterli hot and_not_whitepaper_wildcard_2013
Andrejs Vorobjovs
 

Similaire à Microsoft Power Apps - A Getting Started Guide (20)

TOP 10 Powerapps.docx
TOP 10 Powerapps.docxTOP 10 Powerapps.docx
TOP 10 Powerapps.docx
 
An Inside Look at Dynamics 365 Power Apps
An Inside Look at Dynamics 365 Power AppsAn Inside Look at Dynamics 365 Power Apps
An Inside Look at Dynamics 365 Power Apps
 
Power apps flow-guide
Power apps flow-guidePower apps flow-guide
Power apps flow-guide
 
Introducing Flow & PowerApps - "Power to the people"
Introducing Flow & PowerApps - "Power to the people"Introducing Flow & PowerApps - "Power to the people"
Introducing Flow & PowerApps - "Power to the people"
 
What is Microsoft Power Platform?
What is Microsoft Power Platform?What is Microsoft Power Platform?
What is Microsoft Power Platform?
 
Enhance model driven embedded canvas app here is all that you need to know!
Enhance model driven embedded canvas app  here is all that you need to know!Enhance model driven embedded canvas app  here is all that you need to know!
Enhance model driven embedded canvas app here is all that you need to know!
 
How to create custom connector for Microsoft Flow - SPSNL18
How to create custom connector for Microsoft Flow - SPSNL18How to create custom connector for Microsoft Flow - SPSNL18
How to create custom connector for Microsoft Flow - SPSNL18
 
CCI 2019 - PowerApps for Enterprise Developers
CCI 2019 - PowerApps for Enterprise DevelopersCCI 2019 - PowerApps for Enterprise Developers
CCI 2019 - PowerApps for Enterprise Developers
 
aOS Moscow - E4 - PowerApps for enterprise developers - Fabio Franzini
aOS Moscow - E4 - PowerApps for enterprise developers - Fabio FranziniaOS Moscow - E4 - PowerApps for enterprise developers - Fabio Franzini
aOS Moscow - E4 - PowerApps for enterprise developers - Fabio Franzini
 
600 most amazing apps PDF
600 most amazing apps PDF 600 most amazing apps PDF
600 most amazing apps PDF
 
How to: Create a custom connector for Microsoft Flow
How to: Create a custom connector for Microsoft FlowHow to: Create a custom connector for Microsoft Flow
How to: Create a custom connector for Microsoft Flow
 
power apps.pptx
power apps.pptxpower apps.pptx
power apps.pptx
 
power apps (1).pdf
power apps (1).pdfpower apps (1).pdf
power apps (1).pdf
 
How to create custom Connector for Microsoft Flow
How to create custom Connector for Microsoft FlowHow to create custom Connector for Microsoft Flow
How to create custom Connector for Microsoft Flow
 
Vesterli hot and_not_whitepaper_wildcard_2013
Vesterli hot and_not_whitepaper_wildcard_2013Vesterli hot and_not_whitepaper_wildcard_2013
Vesterli hot and_not_whitepaper_wildcard_2013
 
Reason To Choose Oracle APEX (Application Express).pdf
Reason To Choose Oracle APEX (Application Express).pdfReason To Choose Oracle APEX (Application Express).pdf
Reason To Choose Oracle APEX (Application Express).pdf
 
Best Low No-Code Development Platforms- 2023.pdf
Best Low No-Code Development Platforms- 2023.pdfBest Low No-Code Development Platforms- 2023.pdf
Best Low No-Code Development Platforms- 2023.pdf
 
A Complete Guide To Progressive Web App.pdf
A Complete Guide To Progressive Web App.pdfA Complete Guide To Progressive Web App.pdf
A Complete Guide To Progressive Web App.pdf
 
iOS Application Development Step by Step to develop an iOS App.pdf
iOS Application Development Step by Step to develop an iOS App.pdfiOS Application Development Step by Step to develop an iOS App.pdf
iOS Application Development Step by Step to develop an iOS App.pdf
 
Whitepaper-Power-Platform-ENG.pdf
Whitepaper-Power-Platform-ENG.pdfWhitepaper-Power-Platform-ENG.pdf
Whitepaper-Power-Platform-ENG.pdf
 

Dernier

%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 

Dernier (20)

%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 

Microsoft Power Apps - A Getting Started Guide

  • 1. Microsoft Power Apps A Getting Started Guide By Paul Barnett https://powerappsfornewbies.com/
  • 2. 1 Contents Introduction ......................................................................................................2 What are Power Apps? .....................................................................................3 Create apps in a variety of ways .......................................................................4 Data Sources ..................................................................................................4 How can you get Power Apps?.......................................................................4 Does Power Apps work with SharePoint? .....................................................5 Excel as a data source ....................................................................................5 How good is Power Apps performance?...........................................................5 What kind of apps can I create with Power Apps? ...........................................6 Creating apps ....................................................................................................7 Power Apps controls .......................................................................................10 Adding greater logic to Power Apps projects..................................................13 Publishing the app...........................................................................................14 Let’s create an example app ...........................................................................15 Modify the data source................................................................................15 Put the data source online...........................................................................16 Launching Power Apps.................................................................................17 Saving the app..............................................................................................27 Publish the app ...............................................................................................28 Conclusion.......................................................................................................31
  • 3. 2 Introduction In this ever-changing connected world, more and more organisations are enjoying the benefits of working on the move. We can work from just about anywhere that has a wi-fi connection. Gone are the days when we would need to come into the office each day to do our daily tasks or attend meetings. With the advent of Office 365 we can now work remotely and collaborate with other office colleagues without the need to actually be in the office. Technology is always changing and moving on. Windows desktop apps have been all the rage for many years. Then things started to evolve as web apps became popular. Now we are going through a new stage whereby mobile apps are the new norm. The whole world is using smart phones for a variety of things. Historically mobile apps have been difficult to create and there is no real development platform that has taken off. Microsoft have addressed this issue with Power Apps and have made things a lot easier. The result is a platform that allows you to create apps with no code. That said, if you want to do something a little more advanced, they have given the option to write code. It is not the kind of code you imagine though. Reams and reams of complicated, confusing statements are not something you will see in Power Apps. In this book I will cover the basics of Power Apps so that you will be confident to explore the product further. With any new I.T product there is going to be a learning curve and Power Apps is no exception. I will show you how to create an app and connect to a data source. You will learn how to create screens, add and update data in your application. I will explain the basics of creating an app that can save data using no code as well as with the kind of code to use for something more advanced. You will also discover how to publish the app so that it will work on your mobile device
  • 4. 3 What are Power Apps? Power Apps is a technology from Microsoft that allows you to create apps that run in a browser on mobile devices such as a smartphone or tablet. You can also create browser-based applications for laptop and desktop devices. It is possible to create rich forms, workflows, and custom mobile apps to meet your business needs as well as streamline processes. It was billed as a replacement for InfoPath but has now been taken up for mobile development by organisations globally. Some may find it to be an online version of Microsoft Access, but there is little similarity. That said, you can use Power Apps to replace certain Access systems. Power Apps allows you to create apps in hours—not months—and these apps will easily connect to data sources. You will be able to use Excel-like expressions to add logic. The apps you create will run on the web, iOS, and Android devices. They are suitable for any device that has a browser such as iPhones or Android phones, tablets, etc. Power Apps is not without its faults. There are many improvements that could be made and thankfully Microsoft are listening and continually improving the product. It would be nice if apps could be shared with the outside world for example and not just within users of the organization using Office 365. To be able to create, sell and distribute apps would be another nice feature. When you create an app in MS Access, it can be copied and passed to different users anywhere who happen to be running MS Office. Unfortunately, at the time of writing this is not the case with Power Apps. Hopefully this will be addressed at some point.
  • 5. 4 Create apps in a variety of ways Apps can be created in a variety of ways, although it comes down to simple apps that require little to no coding or more sophisticated apps that require code to be used. The simple templates are never enough. There is always a need to go beyond the auto generated apps. A simple forms-based app can be created very quickly. Simply connect your data source and generate the app based on this. A simple app enabling you to add, edit, delete and update data is generated by Power Apps, ready to be used on a mobile device. The controls such as text boxes, combo boxes, labels, buttons etc are automatically added to the screen along with the mechanism for saving data. For a beginner it is a good starting point. Taking the app apart and looking under the hood at each part will teach you a lot. You can also create a non-forms application. This is where you manually create the screens for your app. A good understanding of coding with Power Apps is needed here as you will need to do a little more than the simple save command that is used in auto generated form applications. Data sources Power Apps allows you to connect to many data sources. Some examples are SharePoint, SQL Server, Excel. You can even connect to DropBox, Google Drive or a variety of data sources you may never have heard of. It is possible to create your own data source also. How can you get Power Apps? Power Apps is part of Office 365. Microsoft offers various subscription packages and your organisation is sure to find something that meets their needs. It is possible for an individual to purchase an Office 365 subscription also. When you sign up to Office 365, you will gain access to a multitude of applications including Power Apps, SharePoint Online and Flow.
  • 6. 5 Does Power Apps work with SharePoint? Yes, it does, brilliantly. Create lists in SharePoint to hold your data and within Power Apps you can easily connect to the list. You can then use your app on your mobile device to add, update or remove records from your SharePoint list. If you prefer to work with a database such as SQL Server, it is possible to do this. You can easily connect to cloud-based SQL AZURE or on premises SQL Server by using what is known as a Gateway. Excel as a data source You can also use Excel as a data source. For many people who are getting started with Power Apps, this may be the easiest route. How good is Power Apps performance? From experience I can say that Power Apps is fast. Much of course depends on having access to a good internet connection. As internet speeds improve with 5G and beyond, the performance of Power Apps will get even better. Writing or amending records to a data source is generally pretty fast I find. Some find a finished Power Apps application can be slow upon start-up. This is somewhat true, but it depends on what you find acceptable. There is an option to run commands on start-up, which can slow things down, depending on what is going on.
  • 7. 6 What kind of apps can I create with Power Apps? Power Apps is versatile enough to allow us to create apps for a variety of uses. For example, here are just a few possibilities • booking room • Inventory check • timesheet • event registration • barcode scanner-based app • booking system You can choose to create an app for a variety of devices • Phone • Tablet • PC/Laptop Because Power Apps is internet based, there is no need to install a version of the app on each user’s device. You create the one app, which is hosted on Microsoft’s Office 365 cloud and then you grant each user access to the app.
  • 8. 7 Creating apps When creating a Power Apps project, you can choose to have it automatically generated based on the fields in your data source. Alternatively, you can choose to build it yourself from scratch. This is my preferred option as I feel it gives me more control over things. For example, in a SharePoint list there is an option for creating a Power Apps project. To create an app from scratch, you would go to the Power Apps interface and select the ‘Canvas app from blank’ option.
  • 9. 8 Inside the Power Apps project, you can add new screens and add the controls such as forms, text boxes, combo boxes etc. If you add a form to your screen, you will be able to connect the form to a data source. This will then automatically pull in the fields from your data source. A form sits on a screen and is basically a placeholder for controls such as text boxes, labels etc.
  • 10. 9 Does it remind you of Microsoft Access? The advantage of a form is that the complexities of saving a record is taken care of behind the scenes. You only need to execute one command - SubmitForm(FormName). The other way is to avoid using a form and to drag on the controls and then bind them to a data source by using code. This is slightly more complex, but gives you greater control. To save the data back to the data source, you would write code and use a command called ‘Patch’. To use the Patch command, you would add in something like the following: Patch(NameOfDataSource, Defaults(NameOfDataSource), { Title:txtPreName.Text, DateOfBirth :dtpPreDOB.SelectedDate, Address1:txtPreAddress1.Text, Town:txtPreTown.Text, City:txtPreCity.Text, As you can see, it looks a little more complex than using a single command to save, but in actual fact it is fairly easy once you get the hang of it.
  • 11. 10 Power Apps controls If you have used Microsoft Access, you are probably familiar with the variety of controls in that application. In Power Apps it is quite similar. The menu bar at the top of the Power Apps interface lists the controls you can expect to use when creating your application. You have the usual array of text boxes, labels, combo boxes, date pickers etc available for adding to your screens.
  • 12. 11 You can also add grids to hold multiple records. If charting is your thing then Power Apps has you covered here also.
  • 13. 12 Here is an example of using a Power Apps gallery control. This is essentially a grid which allows you to display multiple records. Galleries are pretty flexible and quite easy to use. Creating a menu is easy in Power Apps.
  • 14. 13 Adding greater logic to Power Apps projects Power Apps uses Excel like functions and as such there is no official programming language. That said, if more sophisticated logic is needed then another Office 365 product can be used – Flow or Power Automate as it is now called. This allows you to create what looks like a flow diagram that holds logic such as setting variables, loops etc. You can pass parameters to it from Power Apps and also get the results passed back to your application.
  • 15. 14 Publishing the app Once you have created your masterpiece, it is time to share it to others in your organisation. That’s easy enough to do in Power Apps and is as simple as clicking on the ‘Publish’ button. You will be given the option to select users that you want to share the app with. You can then use the app on your chosen device.
  • 16. 15 Let’s create an example app I’m going to now demonstrate how easy it is to create an app. I will be using Excel as the data source. I’ve created a simple Excel document of employee details. Modify the data source In order for Power Apps to work with Excel data, the data will need to be presented in table format. To do that you would need to go to the ‘Insert’ option and select ‘Table’. Then highlight all the cells in the spreadsheet.
  • 17. 16 Then go to the ‘Design’ tab and under the properties section, give the table a name. Here I have taken the default name of Table1. Put the data source online Now close the spreadsheet and drag the file to your OneDrive. When working with Excel files, Power Apps will access them online from OneDrive or OneDrive for Business.
  • 18. 17 Launching Power Apps Go the Power Apps home screen. The quickest way to create an app would be to select the ‘Excel Online’ option.
  • 19. 18 It will then ask you to select a connection. Because I saved my document on OneDrive, I will be selecting OneDrive as the connector. The OneDrive files will be shown. I would select ‘Employees’. It will then ask to select a table. Recall I named my table ‘Table1’.
  • 20. 19 Then click the ‘Connect’ button at the bottom right. Power Apps will then start to create the app. When done the screen will look as follows:
  • 21. 20 Three screens have been automatically created. You will see them on the left- hand side in the tree view. Run the app by clicking on the preview button at the top right of the screen.
  • 22. 21 At the top there are icons for refreshing the screen, sorting the records and also to add a brand-new record.
  • 23. 22 Clicking on the arrowheads will take you to the record details. So, if I click on ‘Kathy Jones’ I will see… At the top right there are icons for deleting a record or editing it. As you can see, I did not have to write any code at all to delete or update a record. Click on the pencil icon and you will be able to edit the record. In edit mode, a tick icon will display. Click it when you have updated the record.
  • 24. 23 Here I changed the name from Kathy Jones to Kathy Mary Jones. Now if I open the Excel document that I used as the data source; it shows that the first name has become Kathy Mary. Power Apps has saved our changes successfully back to the data source.
  • 25. 24 To add a brand-new record, simply click the plus symbol. In this particular example the fields are in the wrong order, but that can be easily changed. Normally I would have the name at the top. For now, I have added a new record for Wendy Watson and saved it.
  • 26. 25 And as you can see from the front screen, Wendy Watson has been added. If I check the back-end Excel data source I can see that Wendy Watson has been added there also.
  • 27. 26 By going into edit mode you can make changes to the app screens. For example, I don’t like having the age showing on the home screen. Click on the item and press the delete key to remove it. In this app, forms are used and each form contains what are known as cards. A card holds the data field. Click on the screen so that it becomes selected around the edges. On the right-hand side, click on the properties tab and then click on the ‘Edit fields’ option.
  • 28. 27 This brings up the fields used on the screen. Using your mouse, press on a field name and hold down the mouse. Then drag the field names to where you prefer them to be. This will get reflected on the screen. Saving the app Click on the ‘File’ option on the menu and then select ‘Save’. Click on the save to the cloud option and give the app a name. At the bottom right of the screen, click the ‘Save’ button.
  • 29. 28 Publish the app The first version of the app will automatically be published. As you make changes to the app, it will require re-publishing. When you save, there will be an option to publish those changes. It is also possible to roll back to a previous version. You can view the app on your device by logging into your Office 365 account and selecting the Power Apps option. Alternatively, and probably the better way is to install the Power Apps mobile app to your device. There is a mobile application for Power Apps available and you can find it by searching in the app stores for both Android and Apple phones. Once installed, you will need to enter your Office 365 credentials to see your available Power App projects. When the app opens, you will see a list of the Power App projects you created. The one I created for this example is at the bottom of the list. Here is the app I created. When you click on the app, it opens at the first screen.
  • 30. 29 As you can see it looks the same on the phone. When I click on an arrowhead it will take me to the record details.
  • 31. 30 I have given a very basic example of how to create an app using Power Apps. It is possible to create apps with far more sophisticated functionality.
  • 32. 31 Conclusion I hope I have given you an idea of what is possible with Microsoft Power Apps. More and more people worldwide are starting to use this product along with Office 365. You can really create some powerful applications to support your business processes. As the world gradually moves to more cloud-based applications, organisations will see the benefits of adapting and embracing these new technologies. Thank you for reading. If you would like further training from me, here are some related links. Website: https://powerappsfornewbies.com/ Join my Power Apps course: https://powerapps.official.academy/#!powerapps-for-complete- newbies/1/YpVp6/ Facebook: https://www.facebook.com/powerappsforbeginners