10 Jul’17

Dynamics 365, EnterpriseConnection Entities in Dynamics 365

Overview:

Connection entities provision an easy way to connect and describe relationships between two records in D365 CRM. This is supported across most Entity types in Dynamics 365.

Some of the features of Connection entities are as follows:

  1. All Business and Custom entities can be enabled for Connections.
  2. Provision to add descriptive information between the relationship between the 2 records.

Enabling Connections for an Entity:

In my example below, I’ll enable Connections for 2 custom entities –

  1. I have a custom entity called Family Members and have these records details of Family Members like their blood groups and medical history. This entity is a child entity of another customer entity called Patient.
  2. Connections must be enabled for this custom entity at the entity level as shown below:
  3. Connections need to be enabled on both entities between which connection is to be made.
  4. Once Connections have been enabled, navigate to the record and navigate to the related records, you’ll see Connections is now available.

Connection Roles:

Connection Roles are the description that defines in what way is record A related to record B.

Connection Roles can be added to a Solution or even created as below:

  1. In a solution, look for Connection Roles on the left hand menu
  2. Then, create a Connection (Existing ones in an Unmanaged Solution can be added as well)
  3. I am creating a new Connection Role by the name Father and I’ve enabled the same only for Patient entity.
    and Family Member
  4. After saving the record, I’ll create a Matching Connection Role to the role Father I just created.
  5. Now, I’ll create a matching Role called as Son
  6. Now, the two roles have been created which match each other

Associating Records:

Once my Connections have been enabled on source (connection from entity) and target (connection to entity), I’ll associate the two records as follows:

  1. I will navigate to the Family Member entity I created above and will associate a record with a record to Patient entity. This way, I can derive what is the relation between the family member and the patient.
  2. In the Connection Associated View above, I’ll associate the Family Member Gary to the Patient. So I’ll select To Another in the connection menu as shown in #1 above.
  3. Then, find the Patient Alexander James which I created in the Connect To tab as shown below. And then I relate the current record to the target record as the Father.
    Note: As soon as Father was selected in the Connected To tab, the Details tab auto-filled Son as it was the only role associated with the Father when we created Connection Roles in above section in this blog. In case there are multiple Connection Roles associated with one Role, the Details section’s As This Role field will be empty for you to select the related role from.
  4. And the record is saved as below. Likewise, a record can be connected to multiple other records as well.

Retrieving Connections:

Connections are useful if you want to draw reports, graphs or charts.

Written by

Priyesh Wagh

Sr. Software Developer

Leave a Reply

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

Time limit is exhausted. Please reload the CAPTCHA.

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Reading more then 10K records in D3FOE OData API

    11 July’ 2018

    Introduction: We all know Dynamics 365 Finance and Operations has limitation of 10K records to be fetched at a time usi...

    Read more
  • Paging in D365 Customer Engagement v9.0

    10 July’ 2018

    Introduction: The Xrm.retrieveMultipleRecords method is used to retrieve a collection of records in Dynamics 365 Custom...

    Read more
  • Set up Dynamics 365 connection in Microsoft Social Engagement

    10 July’ 2018

    Introduction: This blog explains how to Set up Dynamics 365 connection in Microsoft Social Engagement. Steps to be follo...

    Read more
  • Voice of the Customer failed to install

    10 July’ 2018

    Introduction: Many people face issues in installing Voice of Customer solution on v9 environment and trying repeatedly ...

    Read more
  • Scribe Insight AX as a Web Service Find Block issue

    10 July’ 2018

    Introduction: If we need to look up for any value from AX then we do it by using a Find Block in Scribe Insight Eg: Basi...

    Read more