Loading...

Company and Security Concept in Dynamics 365 FO & Dataverse

Company and Security Concept in Dynamics 365 FO & Dataverse

In this post, we will learn how security boundaries and ownership concepts work in Dataverse and Dynamics 365 FO especially when Dual-write and Virtual entity installed.

Why should we understand?

This can lead to an incorrect design of end-to-end Cross-app solution and inaccuracy in record ownership across both the systems i.e. Dynamics 365 FO & Dataverse

What is Company abstract in Dynamics 365 FO & Dataverse?

Lets understand company concept & security concept of Dual-write and virtual entity technologies.

In my view, these concepts are very important to understand by Dynamics 365 consultant while designing the solution.

But before we talk about in detail, let's understand what a company looks like in both FnO and Dataverse.

image.png In Dynamics 365 FO, we have a dataarea and really this is two different concepts related to others. It defines the security boundary. Dataarea is used to give the user access to tights privileges and security roles etc.

It is also a legal and reporting concept. Imagine a customer is related to a legal entity that is called a dataarea, which affects where their business is located, their trade agreements, etc.

Therefore, when you configure Dynamics 365 FO, you must choose two different manufacturing plants or stores in different countries. That will have implications for currencies in the different companies.

Overall, we discussed the dataarea, company information, and legal entity all of which are the same in D365 for Finance and Operations.

However, In the Dataverse, it is divided into two parts, it's an explicit concept.

Whats new in Dataverse for Company concept?

Those familiar with Dataverse must be familiar with the concept of the Business unit or owner, which is where security boundaries and ownership concepts are defined. In other words, business units define which records a user can see, which records he or she can modify, and so forth.

image.png

image.png In the Dataverse, the company presents itself as a completely new concept.

The company record specifically has an outgoing foreign key relationship to the CDM_Company table in Dataverse. This allows you to have independent control over the company records associated with, separate from how that security for that particular record.

A key thing to remember

Dynamics 365 Finance & Operations

  1. Data security boundary DataArea/Company information/ Legal Entity
  2. Record ownership
  3. Business process concept i.e., intercompany Company

Dataverse (Business Unit)

  1. Data security boundary
  2. Record ownership

In D365 FO, security & ownership are integrated with the legal entity concept, whereas in Dataverse, these are separate concepts.

Let's understand how this is implemented.

Company Data model in Dynamics 365 FO

image.png In the salestable, there is a column called "dataareaaid" which contains the four-character company id having a relationship with the ID column of the DataArea table. A separate table called "companyInfo" in Dynamics 365 FO stores legal information about the company and the DataArea column of "CompanyInfo" table has a one-to-one relationship with DataArea table of ID column.

Company Data model in Dataverse

image.png You can see in Dataverse a column called "Company" in the Order table that has a foreign key relationship and this shows security concepts do not directly relate to companies. Unlike D365 FO where a single column of DataArea declares the security perimeter, here in Dataverse there is a table called systemuser which maintains the business unit relationship.

Conclusion

By understanding above concepts, you will be able to understand company concepts as well as how security boundaries and ownership concepts work in Dataverse and Dynamics 365 FO especially when Dual-write and Virtual entity.

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

Exploring the Differences: Managed vs. Unmanaged Solutions in Dynamics CRM/Dataverse

In Dynamics CRM/Dataverse, solutions are central to Application Lifecycle Management (ALM), providing a structured way to manage, package, and...

28 days ago

Effective Strategies for Debugging Plugins in Dynamics CRM

In a recent interview, I was asked about debugging plugins in Dynamics CRM. The interviewer specifically wanted to know my approach to plugin ...

1 month ago

Is Microsoft Dynamics CRM Affordable for Small Nonprofits?

Satish Reddy By Satish Reddy | Reading time 6 mins When considering a CRM solution, affordability is often a primary concern for small no...

3 months ago

How Microsoft Dynamics CRM Services Helps a Startup Nonprofit

Satish Reddy By Satish Reddy | Reading time 6 mins For startup nonprofits, the right Customer Relationship Management (CRM) system can be...

3 months ago

Easy Plugin Registration Tool Installation for Dynamics 365 CE Developers

Hi Folks, Are you a Power Platform or Dynamics 365 CE Developer, you would definitely need to work on Plugin Registration tool at any given po...

3 months ago

Web resource method does not exist in Dynamics 365 CE

Got the below error while working on Onload of Account record JavaScript in Microsoft Dynamics 365 CE. Script Error One of the scripts for thi...

4 months ago

How to get Environment Variable Value in Dynamics 365 CE using JavaScript?

We might have got a scenario to use the Environment Variable Value in the JavaScript in Dynamics 365 CE. In this article, will explain about r...

4 months ago

Enhancing Business Efficiency with Dynamics 365 CE/CRM AI Capabilities

Artificial intelligence (AI) is a vital catalyst for business transformations in this digital era. A leading player in this revolution

4 months ago

Interview Questions and Answers Dynamics 365 CE and Power Platform – Ultimate Guide

In today's business landscape, Dynamics 365 Customer Engagement (CE) and the Power Platform have emerged as game-changing tools that have tran...

5 months ago

Back to Basics # 72: Limit Special Characters Using a Webresource in Dynamics CRM

Recently we got a requirement to restrict user to enter special characters. Step 1 : Use the below method for restricting special characters S...

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