Start with First PowerApp

In my previous blog post, I have explained about canvas apps and model driven apps. Let us first see how to build a canvas app in PowerApps.

Development for PowerApps can be done either in web PowerApps studio or desktop PowerApps studio. First step is to create the Environment for the development. You can start with the trial version for free.

Login to the Powerapps.microsoft.com

Let us first create the environment to create our app.

To create the environment follow the steps as shown in following screenshots

Click on the setting icon at the right top of the screen and select Admin center.

Then click on the Create New Environment again at the top right corner.

Enter the details about the new environment and create the new environment.

Create EnvironmentCreate Environment1Create Environment2

Once you create the environment, you can select that environment to start the app development. Make sure that you have chosen the right environment and then start with the application development.

We can develop apps based on various backends such as CDS, Excel, OneDrive, Sharepoint etc  Let us build our first app for some specific requirement in Dynamics 365 CE for the  scenario mentioned below:

A product company, has a call center and sends the service mechanics  to repair existing machines or install new machines at the customer site. They are always on the move and while doing assigned jobs if they find that there is additional work to be done, they should be able to create the case or opportunity on their mobile quickly.

As a first step, select Apps from the left menu as shown in below screenshot and click on create an app button.Create New App1

Powerapps studio would provide you options to select the base data on which you want to create an app. Here since we want to create case or  Opportunity in Dynamics 365, select Dynamics 365 as show in below snip.

Create new App2

Studio would guide you to step by step to connect the D365 instance

Create new App3Create New App4

Once you are connected to D365 CE, you have to select the entity on which you would like to do the operations through the PowerApps app.Create New App5Create New App6

Let us select case entity and see what PowerApps does it for you.

Create New App7Create New App8

Just save the app with appropriate name and even you can select icon for the same.Create New App9

PowerApps would build the complete app for you to view the cases, view the  case details and editing particular case or creating a new case as shown below

Create New App8

Let us see all these screens in details one by one

Browser screen : It is a list screen where you can find all the cases, you can search for specific cases, you can sort the order of the cases. All these functionalities are given by PowerApps automatically and you don’t have to do anything to achieve the same.

Now let us see the components of this screen. Major component is BrowserGallery1. This is the gallery control which can be connected to the the database table Case. You can see the property pane at If you look at the properties of the gallery, Data is the most important property of the gallery which connects to the data. With this property you can change the data source if required. Browsescreen1

Browsescreen3

With the layout property, you can change the way your data is displayed, even select the columns which should be displayed in the gallery.

Browsescreen4Browsescreen5

When you see the items property of the gallery, you can see below text

SortByColumns(Search(Cases, TextSearchBox1.Text, “description”), “description”, If(SortDescending1, Descending, Ascending))

This function actually works for the sorting and searching functionality.  I would recommend you to go through the all controls present on the screen and try to understand their properties.

Once you understand these properties, you will be able to play with those based on your requirements. These are very intuitive and can be easily learned

If you click on the “>” next to any item in this gallery , that record would open in edit mode in the new screen.  Just check the action defined to achieve this functionality.

Browsescreen7

Similarly you can see the “+” symbol which would navigate to the new entry page and you can create new case from this screen. Just check the action defined to achieve this functionality.Browsescreen8

Now let us see second screen in this App.

In the second screen, you would understand the usage of data card control of the PowerApps. This screen has DetailForm which consists of various data cards.

The form is bound to the data source and the record which is selected in previous screen.

Detailedform1Detailedform2Detailedform3Detailedform6

The datacard is created for each field and fields can be selected from the layout.

Based on the type of the  field, the type of data card is selected, which can be changed later if required. If you want to do any changes in datacard, you must first unlock it and do the changes.

Detailedform4Detailedform5

Each Datacard consists of a Value and Key which represents the actual data value and field name correspondingly I would recommend you to look at the various properties of these data cards and understand how intuitive it is to use.

I am hoping you must have understood of the basics of PowerApps app development with this post.

Thanks for reading. In case you have  any questions about the PowerApps, please leave in comments and I would get back to you.

If you like  my blog, please hit the like button or share with others

Continue reading “Start with First PowerApp”

PowerApps Model Driven/Canvas Apps

PowerApps development can be done using any of the below methodologies

  • Canvas Apps
  • Model Driven Apps

Let us understand both of these methodologies one by one

Canvas Apps

Designer has complete control over app layout in canvas types of apps. We can develop apps to run on SharePoint, PowerBI, Dynamics 365, Common data service for Apps. PowerApps provides various template and sample  data to create apps. We can use these templates for quick understanding of app development, see how the data binding is done, how the UI controls are used and how the application flow is developed. Once we are through with this understanding, we can modify these templates as per business requirements.

PowerApps makes our life easy as we can develop apps automatically from below data sources.

Once the default app is ready, it can be further customized to change the way the data

is displayed, the way it should  be sorted , which data to be displayed etc.

Going further we can even develop apps from scratch and implement the way you think / imagine.

These apps can run in various tabs, desktops and  phones.

The Apps can be  shared with other users and then they can also run these Apps.

Model Driven Apps

Unlike the canvas apps, where designer has complete control over the app layout, Model driven apps layout is completely dependent on the controls you put on the screen.

Model-driven app design provides the following benefits:

  • Rich component-focused no-code design environments
  • Create complex responsive apps with a similar UI across a variety of devices from desktop to mobile
  • Since the UI is based on the Dynamics 365 CE user interface, if you are familiar with Dynamics 365 CE, its very easy for you to develop apps in PowerApps
  • Your app can be distributed as a solution  to required users/enviornments

At a fundamental level, model driven apps consist of three main components as mentioned below

  • Modeling business data
  • Defining business processes
  • Composing the app

Modeling business data

To model business data you determine what data your app will need and how that data will relate to other data. Model-driven design uses a metadata-driven architecture so that designers can customize the application without writing code.

This means you can can create the entity structure which is closely matching with your organisation business. You can create your entities, add relationships, customize the view and even customize the forms to interact with your data.

Defining business processes

Defining and enforcing consistent business processes is a key aspect of model-driven app design. Consistent processes help make sure your app users focus on their work and not on remembering to perform a set of manual steps. Processes can be simple or complex and often change over time.

This helps the users to follow the standard set of process while they are working on any task. The business process can be defined as per business requirements and can consist of one or more entities. You can define multiple business processes on one entity as well

Composing the model-driven app

After modeling data and defining processes, you build your app by selecting and configuring the components you need using the app designer.

Model-driven apps are based on data, UI, logic and visualizations and consist of below components

 

Data UI Logic Visualization
  • Entities,
  • Fields,
  • Relationships,
  • Option sets

 

·         Forms

·         App

·         Sitemap

·         View

  • Business Process Flow
  • Workflow
  • Actions
  • Business Rule
  • Flow

 

  • Chart
  • Dashboard
  • Embedded PowerBI

 

Hope this post helped you to understand two ways to implement PowerApps and you can start creating your apps.

Happy Learning!!

Please click like button if you like my post and mention comments in case you want me to write on something specific or any changes required.

Continue reading “PowerApps Model Driven/Canvas Apps”