Concepts

Create a Model-Driven App from Tables

In Microsoft Power Apps, you can create a model-driven app by leveraging the tables and entities defined in the Common Data Service (CDS) or other data sources. Model-driven apps provide a structured and organized approach to building applications that align with specific business processes. Follow these steps to create a model-driven app from tables:

1. Define your data model

Before creating a model-driven app, ensure that you have defined the necessary tables, entities, and relationships in your data source. In the Common Data Service, set up custom entities and establish relationships between them as per your business requirements.

2. Navigate to Power Apps Maker Portal

Go to https://make.powerapps.com/ and sign in to the Power Apps Maker Portal using your Office 365 or Power Apps credentials. This is where you can create and manage your apps and data models.

3. Create a new model-driven app

In the Power Apps Maker Portal, click on “Apps” in the left-hand navigation pane. Then, click on the “New app” button to start creating a new app. Choose the “Model-driven” app template.

4. Customize the app’s components

In the App Designer, you’ll find a visual canvas where you can customize various components of your model-driven app:

a. Sitemap

The sitemap defines the navigation structure of your app. Customize the sitemap to include the entities, views, and forms that you want to display in your app. You can add or remove areas, add sub-areas, and specify icons and labels for each entity.

b. Forms

Edit or create forms for your entities by selecting the desired entity in the App Designer and then choosing the “Forms” tab. Customize the form layout, add or remove fields, adjust field properties, and configure rules and business logic for data validation or automation.

c. Views

Define and modify views of your entities to control how data is displayed in different parts of your app. Customize the columns, sorting options, filters, and search capabilities of each view to suit your specific needs.

d. Charts and Dashboards

Add visual dashboards and charts to provide users with data insights and analytics. Configure charts based on entity data, and create interactive dashboards to present key performance indicators and metrics.

5. Configure security and permissions

Ensure that the appropriate security roles and permissions are assigned to users or user groups for accessing and interacting with your model-driven app. Define roles, assign privileges, and manage data sharing rules to control user access to specific entities and data records.

6. Publish and test your app

Once you have customized your model-driven app according to your requirements, click on the “Publish” button in the App Designer to make it available to end users. Test the app thoroughly to ensure that data is displayed correctly, forms function as expected, and navigation flows smoothly.

By following these steps, you can create a model-driven app in Microsoft Power Apps from the tables and entities defined in your data source. Customize the app’s components to align with your business processes and provide users with a tailored and structured user experience.

Answer the Questions in Comment Section

Which component allows you to define the relationships between entities in a model-driven app?

a) Forms
b) Views
c) Dashboards
d) Relationships

Correct answer: d) Relationships

True or False: In a model-driven app, you can use the Power Apps Component Framework to build custom controls and integrate external data sources.

Correct answer: True

Which of the following actions can you perform using the App Designer in a model-driven app? Select all that apply.

a) Customize the sitemap
b) Create and modify entities
c) Design custom business processes
d) Define security roles and permissions

Correct answers: a) Customize the sitemap, b) Create and modify entities, d) Define security roles and permissions

What is the primary purpose of the “Site Map” component in a model-driven app?

a) Display a hierarchical navigation menu
b) Define the layout and structure of the app’s pages
c) Manage user roles and permissions
d) Connect to external data sources

Correct answer: a) Display a hierarchical navigation menu

When designing forms in a model-driven app, which of the following statements is true?

a) Every field on a form must be associated with an entity in the database.
b) Form layout cannot be customized or rearranged.
c) Conditional formatting cannot be applied to fields.
d) Forms can include both system and custom fields.

Correct answer: d) Forms can include both system and custom fields.

 

0 0 votes
Article Rating
Subscribe
Notify of
guest
21 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Sonia Román
10 months ago

Great post! Learning to create a model-driven app from tables was quite straightforward.

Laura Gómez
1 year ago

I struggle with linking multiple tables. Any advice?

Aapo Eskola
9 months ago

Understanding relationships between tables was the hardest part for me.

Johanne Johansen
1 year ago

The interface to build a model-driven app is very user-friendly.

یسنا علیزاده

How do you handle data validations in model-driven apps?

Elio Rousseau
1 year ago

Thanks for this comprehensive guide!

Jakov Sakić
9 months ago

I had issues with deploying the app. Did anyone face the same?

Shakir Buijsen
10 months ago

The visual representation of data in model-driven apps is impressive.

21
0
Would love your thoughts, please comment.x
()
x