10 Jul’17

Dynamics 365, EnterpriseConnection Entities in Dynamics 365


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

  • Dynamics 365 Client Diagnostics

    15 March’ 2018

    Main cause of Performance Issues: Bandwidth and latency are the primary characteristics which affects the performance o...

    Read more
  • Closing Blind Shift in MPOS and CPOS in Dynamics 365 for Retail

    15 March’ 2018

    Manual For closing Blind shift in POS: Blind shifts terminate the currently ongoing shift and when logged in a new shif...

    Read more
  • Persistent Filters in the Power BI Service

    13 March’ 2018

    Introduction: The feature is finally release, and it is power BI has announced general availability of persistent filt...

    Read more
  • Cause and Solution for Scribe MSMQ not receiving Message from AX

    10 March’ 2018

    Issue: Microsoft Message Queuing (MSMQ) service running on Server might be unable to receive messages. Therefore, messa...

    Read more
  • User Privileges on SharePoint – D365 Document Integration

    10 March’ 2018

    Overview: Often, we wonder what could be wrong where we see a generic error on Documents in Dynamics 365. Something lik...

    Read more