Thursday, 27 November 2014

CRM 2015: How to Configure & Customize Hierarchy Relationship for Custom Entity

In the previous post, I was explaining about Hierarchy Relationship in CRM 2015, as we know we can have now I am explaining how to Configure the Hierarchy Relationship Setting for Custom Entity.

Let’s Get Started

Now, let’s configure it!

Create a Custom Entity

Let’s create a custom entity, I create a custom entity, so-called as ‘Project’

image

Create New Fields

To make this scenario more complex and interested, let’s we create additional fields, such as Project Amount and Customer (Account). Thus, we can use those fields to show in the form.

Create the Relationship

Now, create the Relationship and make sure it is a self-referential relationship, it means that a relationship with Primary entity and the Child entity are the same entity.

image

And make sure you set the Hierarchical to ‘Yes’, it is very important.

Configure the Hierarchy Relationship

Now, go to the next setting, there is ‘Hierarchy Settings’ and Create New.

image

Now it will open a new windows allowing you to create only one new Hierarchy Setting and you are required to give name and choose default Quick View Form, if you don’t have this Form, then you should create at least one Quick View Form.

image

Create the New Quick View Form

Put the important fields into the Form.

image

Save it.

You can create more than 1 Quick View Form, but you need only one default form.

image

*Remember in this post, we can only display 4 fields shown in the each diagram shape block, to display more info you can achieve this by switching the Form, so we need to create multiple Quick View Forms to achieve this and choose one as the default.

Save it.

And check this:

image

It should show ‘True’.

Do not forget to Save and Publish All Customizations

image

Create the Sample Data

After you published, it is the time to create the hierarchical data, before that make sure you have configured all the important fields in to the Main Form.

After you create several data with parent-child relationship enable, you can see the View Hierarchy upon you saved it.

image

View All Data

image

See the Result

Now, let’s see the visualization.

image

You can see the hierarchy of the Project in each record perspective, either from the top one, the middle level, or the lowest level, you can select and jump to another related record in line.
In the left side is the tree view which you can Expand and Collapse.

In the Center is the Hierarchy Diagram.

And if you select the record, as usual plus contextual it will allow you to perform some actions defined in the Ribbon/Command Bar

image

Well, it is a nice visualization from Out of the Box functionality, now I want to make it more beautiful by adding pictures.

How to Show with Picture?

First of all, you need to enable the Entity Image that was first time introduced in CRM 2013.
Go to the Entity detail and enable the Entity Image by creating a new image field.

image

And go to the Form display properties

image

Check the ‘Show image in the form’ checkbox

Save it and do not forget to publish it.

And Now you should add the Image, in this example is the image of the Project Manager, update your data and get back to see your result.

Visualize your Data with Diagram plus the Picture, it means 1000 words!

image

image
image

Hope this helps you!
Thanks.

14 comments:

  1. Hi, thanks for the article.. How did you add images to the quick view forms in the hierarchy view?

    ReplyDelete
    Replies
    1. Dhivya,

      Just create an image field for that entity as default

      Delete
    2. Hello everyone, I'm here to let the whole world know of a man called Dr. Ekpen he is a spell caster and he is the man that helps me in my restore my marriage when my husband broke up with me, he use his power and gift to restore joy in my relationship. I want to also let the whole world know that he can still help if you are been blackmail by someone or you want to win a court case he can help. Contact him today via email: ekpentemple@gmail.com

      Delete
  2. I am Mariam used every single spell worker on the internet, spent untold amounts of money and discovered they are all fakes...i was the fool though; doing the same thing over and over again and expecting different results. In the end, I decided that I wanted a tarot reading to know what my future held for me; I contacted a woman who lives locally to me and she told me about a man named (priests olalude abija); he does not advertise on the internet, has another job for income, has no set prices, makes no false promises and refuses to help anyone that cannot be helped and even helps for free sometimes, he will give you proof before taking money. He is a wonderful man and he was the only person who actually gave me real results. I really hope he doesn't mind me advertising his contact on the internet but I'm sure any help/ extra work will benefit him.contact him as spirituallighthealing101@live.com He travel sometimes.love marriage,finance, job promotion ,lottery Voodoo,poker voodoo,gambling voodoo,golf Voodoo,Law & Court case Spells,money voodoo,weigh loss voodoo,any sicknesses voodoo,cancer voodoo,Trouble in marriage,it's all he does Hope this helps everyone that is in a desperate situation as I once was; I know how it feels to hold onto something and never have a chance to move on because of the false promises and then to feel trapped in wanting something
    more.

    ReplyDelete
  3. Hello everyone I really want to appreciate this great man called Dr.Agbazara who helped me bring back my ex lover within 48hours I really thank him he is the best and the fastest spell caster among other spell casters Dr.Agbazara wipe away my tears and today I and my lover is living together happily. If you are out there and you need this great Doctors to Help you can kindly contact him at email:
    (agbazara@gmail.com) OR call him on: (+2348104102662).

    From USA

    ReplyDelete
  4. If one child has two or more parents, how can we show it view hierarchy. I need build a logic to show entire family in which once child can have multiple parents. Please help me.

    ReplyDelete
    Replies
    1. I think this is a limitation. It supports only 1:N relationship. Check the limitations in the previous post of the same blog. (i.e., http://missdynamicscrm.blogspot.in/2014/11/CRM-2015-hierarchy-relationship-new-feature-setting.html)

      Delete
  5. Life is good when you have your love ones around you, I am saying this because when i had issues with my lover i never seen life as a good thing but thanks to Dr. AGBAZARA of AGBAZARA TEMPLE, for helping me to cast a spell that brought my lover back to me within the space of 48hours. My husband left me for another woman after 7YEARS of marriage,but Dr.AGBAZARA help me cast a spell that brought him back to me within 48hours. I am not going to tell you more details about myself rather i will only advise those who are having issues in there relationship or marriages to contact Dr.AGBAZARA TEMPLE through these details via; ( agbazara@gmail.com ) or call him on Whatsapp: +2348104102662

    ReplyDelete
  6. Hi Aileen Gusni, I have problem when view hierachy in Internet Explorer 11, it lose information(ex: account, project amount,create on....), it's good in Chrome. Please, support me. Thanks !!!

    ReplyDelete
  7. Hello,
    While creating self-referential relationship, the "Hierarchical" option is locked so unable to update to "Yes". Do you know why it is behaving like this?

    ReplyDelete
  8. This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.
    Conference 

    ReplyDelete
  9. Hello everyone, I'm here to let the whole world know of a man called Dr. Ekpen he is a spell caster and he is the man that helps me in my restore my marriage when my husband broke up with me, he use his power and gift to restore joy in my relationship. I want to also let the whole world know that he can still help if you are been blackmail by someone or you want to win a court case he can help. Contact him today via email: ekpentemple@gmail.com

    ReplyDelete
  10. Are you having issues in your relationship, or finding it difficult to have a child of your own or are you the type having any diseases in your body. I will advice you to contact Dr. Abolo of Abolospell@gmail.com . The potency of his spell is so effective and can reunite broken relationship and can also make one get pregnant know matter the situation and not only that, he also has the power to cure all type of diseases within the period of 48hours.. Contact him today and thank me later.

    Contact details : Abolospell@gmail.com

    ReplyDelete
  11. I am impressed by the information that you have on this blog. It shows how well you understand this subject.call center dialer

    ReplyDelete

My Name is..