Loading...

The magical option to refresh virtual table relationships in Dataverse

The magical option to refresh virtual table relationships in Dataverse

My goal in this blog post will be to provide you with steps that will help you to auto-refresh Virtual table relationships when changes are made to the Data entity relationships in Dynamics 365 FO.

Business scenario:

Consider the scenario where you have modified & developed several standard and custom data entities and defined the relationships required by the business.

As a result of the discussion with the business SME, it was discovered that Power Apps or Dynamics 365 CE require a few additional relationships between the data fields.

Lets deep dive and understand the steps

I have chosen **PurchPurchaseOrderHeaderV2Entity (**Public Collection Name: PurchaseOrderHeadersV2) as an example.

Assumption: PurchPurchaseOrderHeaderV2Entity is already enabled as a Virtual table in the Dataverse.

In some situations, it is not necessary to enable all data entities as virtual tables within the main entity relationship.

As part of my scenario, I have enabled two existing relationships between data entities.

Do you know? A relationship on a data entity is primarily used to automate lookups in Power Apps or Dynamics 365 CE. Isnt a cool low code option. 😎

Refer to my YouTube videos if you would like to learn more about virtual entities and Dynamics 365 Cross apps.

Cross Apps Learning

The standard data entity of PurchPurchaseOrderHeaderV2Entity has two relationships (DimensionDimensionSet & Project), and the view Dataverse shows the same relationship, as indicated in the snapshot below.

Based on the business scenario, I will add new relationships on Vendor Account Number and perform the steps to enable the same in Dataverse with a single button click.

1. Navigate to Visual Studio and head over to Solution and create an extension of OOB PurchPurchaseOrderHeaderV2Entity

2. Build the VS solution

3. Navigate to System Administration module -> select Data management workspace -> Framework parameters -> Entity settings tab -> Refresh entity list

4. Depending on your Tier-1 box configuration, step 3 may take longer to complete, please wait until it does

5. Navigate to the Advanced setting option in the maker portal of Power Apps (https://make.powerapps.com/)

6. Select the Advanced settings and lookup for the PurchPurchaseOrderHeaderV2Entity virtual table using advanced filter option

7. Select the magical "Refresh" option to restore Data entity relationships of PurchPurchaseOrderHeaderV2Entity in the Virtual table of Dataverse

8. Click on Save or Save & Close option

9. Navigate to the Power Apps maker portal and select your Dataverse environment

10. From the Left pane, select Dataverse and then Tables

11. To filter the virtual entities, choose "mserp" as the prefix and select All to show all virtual and physical tables

12. The selected Virtual tables were automatically created as part of the virtual table's "Visible" option. Please refer to the assumption section.

13. Navigate to the relationships schema to validate the newly created Data entity relationships

Conclusion

Developers and code reviewers can benefit greatly from even the simplest observations.

I hope this article was a good read for you. Do share it with your friends and other peers.

Thank you so much!

Thank you for Reading - Let's Connect!

Enjoy my blog? For more such awesome blog articles - follow, subscribe and let's connect on LinkedIn, Twitter, YouTube

Stay tuned!

Published on:

Learn more
Rakesh Darge's Blog
Rakesh Darge's Blog

Rakesh Darge's Blog

Share post:

Related posts

"Fix ‘This is Not a Unified Environment’ Error in D365 FO – Why Metadata Download Fails in Visual Studio"

🚨 “This is not a unified environment…” - A Story Every Dynamics 365 Finance & Operations Developer Should Hear Let me start with a real story...

4 months ago

PPAC Unlocked: Deploying Dynamics 365 ERP Environments with and without Demo Data

Let me start with a story… A few months ago, I was working with a customer who was planning to implement Dynamics 365 ERP. Their approach was ...

4 months ago

My Experience with AB-100: Earning the Microsoft Certified AI Business Solutions Architect Badge

The AI space is evolving rapidly, but very few certifications truly reflect how AI is designed, governed, and delivered in real business envir...

6 months ago

Demystifying the Copilot Sidecar Architecture in Dynamics 365 Finance and Operations ERP: A Solution Architect’s Guide

Welcome to the future of enterprise resource planning! If you're exploring the world of Dynamics 365 Finance and Operations (F&O), you've like...

1 year ago

Accelerate Your Development with Dynamics 365 FO Custom Batch Framework Templates

No matter the complexity of Dynamics 365 FO implementation, developing custom batch jobs is always necessary to accommodate tailored business ...

1 year ago

Improve Dynamics 365 FO Non-continuous Number sequence Performance: Tips and Strategies for Success!

Navigating performance issues in Dynamics 365 FO can be quite a challenge. There are numerous factors and considerations to take into account ...

1 year ago

How do we analyze Dynamics 365 FO Golden Copy configurations across the environments?

In the ever-evolving Dynamics 365 FO ecosystem, maintaining Golden Copy configurations remains one of the most discussed and reimagined aspect...

1 year ago

My Top 10 Learning of Copilot for Dynamics 365 Finance & Supply Chain Management

Hey Learners, 👏It seems that Microsoft Copilot, the AI-powered assistant, is gaining popularity worldwide. Customers and partners are trying ...

2 years ago

6 Prompts for resolving Tier 1 ERP table mapping challenges with Dynamics 365 Finance & Supply chain

Wouldn't it be great if we could simplify a few complex tasks to boost Dynamics 365 FO implementation productivity?There have been a number of...

2 years ago

Architecting For File Security : Solution Design Approaches to Encrypting and Decrypting File Data in Dynamics 365 Finance - Part I

The security of data is one of the most pressing concerns in the digital age. Whether you're sharing sensitive information over the internet, ...

2 years ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy