Over 10 years we help companies reach their financial and branding goals. Engitech is a values-driven technology agency dedicated.

Gallery

Contacts

411 University St, Seattle, USA

engitech@oceanthemes.net

+1 -800-456-478-23

Power Apps

This blog will help you to understand how to map fields from one entity to another in Model Driven apps. 

I will be using the out-of-the-box Account Entity and a custom Order entity. 

In order entity, I have added these attributes to show you the mapping between account and order: 

  • Order Number (String) 
  • Customer (Lookup of Account table) 
  • Customer Type – Choice Column (Individual/Business) 
  • Phone (Number) 
  • Product (String) 
  • Quantity (Number) 
  • Total Amount (Number) 

Customer, Customer Type, and Phone will be common in both entities so that I will map these fields. 

  1. Go to make.powerapps.com 
  1. Log in with your Microsoft Personal or Work account, Select the Environment, and then go to “Apps” 
  1. When you click on “New App”, select the Model-Driven and It will open the below Screen. 
  1. Add the name of your app and create. 
  1. Choose the out-of-the-box Dataverse table Account and the one we created – Order. 
  1. On the Account form, add a sub-grid of the Order table. 
  1. Now we will go to settings, Customizations and Customize the System 
     
  1. Now, navigate to the source entity from which we want to map fields to another target entity. 
     
  1. Go to 1: N Relationship and go to the relationship of account table with Order. 
  1. Now go to “Mapping” on the left-hand sidebar. 
     
     
  1. Click ‘New’ and add a new mapping of the ‘Customer Type’ and ‘Phone’ fields. 
    Select the same field on both entities. And click ‘OK’ 
  1. Now go to your App and create a new Order from the sub-grid. It will populate the data in the quick-create form. 

The Field Level Mapping Restrictions 

Here are a few things you should know about field-level mapping before you get started: 

  • Fields must be the same type and format. 
  • You can only apply field-level mapping to a field once. 
  • This will not work with hidden fields: the source field must be visible on the form. 
  • For Option Sets to be mapped, they must have matching integer values (not just matching text!) 
    (Global option sets make this simple!
     
    So, that is how you can map fields efficiently rather than manually adding the data. 
Hafsa
Hafsa Farooqui
Software Engineer II at Imperium Dynamics | + posts

Author

Editorial Team

Leave a comment

Your email address will not be published. Required fields are marked *