Mobile Devices

There are many different ways that you can create a new app in PowerApps. When you decide that you need an app you might be making a choice that you later on may regret.

Create an App from a list

For each of these options you also need to consider which devices you are going to use your app on and how do you want users to find your app. Although, I always separate my data and presentation layer very strongly and I don’t really mind where you store your data. For PowerApps it might matter where your data is located as different options will become available.

Imagine that your data is stored within SharePoint, you will now have a few additional options available within the SharePoint lists to create apps in PowerApps. But what if you have Document Libraries that store documents with metadata holding the data, now you suddenly don’t have the PowerApps options available (yet).

To get started with the PowerApps options available to you I will have a look at:

  1. Customising list edit forms
  2. Create an App from a list
  3. PowerApps -> Apps  -> Create an app -> Canvas
  4. PowerApps -> Apps ->  Create an app -> Model-driven
  5. Import a package
  6. Powerapps -> Create – Canvas app from blank
  7. Powerapps -> Create – Model-driven app from blank
  8. Powerapps -> Create – Start from data 
  9. PowerApps -> Create – Start from … any template.
  10. Solutions -> Add an App

Customising list edit forms

Customising list edit forms is the first option to look at. Users with the right permissions on a list can find this options and are therefore able to create. All they have to do is click the Customize forms in option in the list menu.

This option gets the user to an app that is already connected to the list. The app will be a copy of the existing out of the box form.

List edit forms

Also note the SharePoint Integration element on the left.

SharePoint integration

This is where you can control the events that happen when someone hits the form menu options like Save, New and Edit.

Events

To publish the app simply click on the Back to SharePoint and PowerApps will prompt you to publish the app.

There is something else that is important to notice form these list apps that isn’t immediately visible in the App Settings. There is no app name or icon that can be changed, but more importantly the options to sizing the screen are different.

App settings

Although Custom sizes are possible you will need to be careful here, making the form to wide might result ion issues like shown below. I would stick to the large and small options that are offered as standard. I set the background of my form to orange to make the issue clearer.

Form too wide

If your organisations likes to use SharePoint lists then this kind of app may work for you however I tend to ‘hide’ my lists away form users as I prefer them to use apps on pages only.

Create an App from a list

To create an app from a list will create an app that gives you multiple screens for the list where you created the app from.Create an app from a list

App from list

This can of course be very helpful, if you want to create you basic app that needs to list data and give the user the option to edit items or view item, but you might as well use SharePoint lists themselves instead. As a learning exercise this option to create an app can of course be good,but why would you create an app that can do less than out of the box SharePoint lists?

Good question!

The answer is easy to find in the App settings screen.

Mobile template

The app that is created is a mobile app. So with a few clicks you could make it easy for users to edit data in a list in SharePoint from their mobile devices. Still personally I would prefer to give my users a custom app that offers the functionality that they need rather than the functionality that is easy to create.

PowerApps -> Apps  -> Create an app -> Canvas

To create a simple canvas app that you can use in for example SharePoint is probably my favourite option.

Canvas App

This now gives me the option to either select my data source or a template (including no template)

Create a Canvas App

PowerApps -> Apps ->  Create an app -> Model-driven

The Model driven app is a whole different kind of apps.

Model driven apps

Once you have supplied to details in the above form PowerApps will create the base app for you. These apps are very different form the apps that we have seen so far.

Model driven app created

So far we have focused on canvas apps that connect into SharePoint. Model driven Apps are based on Dynamics 365 (aka Dynamics CRM). When you create an app on for example the Accounts entity, you could create something like this. Although a lot is possible the Model driven apps don’t give you the flexibility that Canvas apps do give you. To implement business processes however Model Drive Apps can help you get started very quickly with these Dynamics 365 base apps..

Dynamics 365 base model driven apps

Import a package

I can be very short about the Import a package option.  If there is an export then you would expect to see an import app option too.

Import package

Powerapps -> Create – Canvas app from blank

When Creating a new canvas app from blank via the Create menu, the experience is slightly different from the earlier mentioned create canvas app.

Canvas app from blank

A dialogue asks you what to call the app and what kind of device you are planning to use.

From blank

Although Microsoft is pushing hard for us to use their templates, I prefer to start from an empty screen.  It is a bit like writing blog posts. Would you expect me to copy my previous post before writing about something new? Or even worse, should I copy someone else’s work before writing my own posts?

Powerapps -> Create – Model-driven app from blank

This option is exactly the same as the above mentioned Model Driven App.

Powerapps -> Create – Start from data

After you select the start from data template and you clicked on the Create button in the dialogue that sins’t really adding anything …

Start from Data

You get to the same screen as earlier

Start from data app created

It feels a bit like the PowerApps interface could do with removing some of the options.

PowerApps -> Create – Start from … any template

This is one of the favourites of Microsoft.

More and more templates are made available all the time. I quite like to use these templates as learning material. I wouldn’t use them as a base for my application though. Templates Available

 

Solutions -> Add an App

The solutions framework is something that was inherited form Dynamics CRM. This is a great way to make your apps deployable. By adding your apps and other elements of your solution to a single package it will help you manage your apps better. The apps are the same as described in the above examples, however with solution you can protect them like Dynamics developers have been protecting their solutions for years.

It also helps you bundle your flows, entities and apps all together in a single package. Although, not everybody will immediately see the benefit from packaging up the solutions, if you are serious about your app development you should really consider looking at solutions. Managing your apps with solutions and moving the apps from Dev to Test to Production is something that should be considered.

Add an app to a solution

Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications Microsoft MVP working as the Head of Power Platform at Vantage 365. You can contact me using contact@sharepains.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe now to keep reading and get access to the full archive.

Continue reading