Share via


Relationships eligibility in Titan (CRM 4)

If you are wondering what entities are eligible for which types of relationships, wonder no more, you can determine that programmatically using the Metadata API. For RC0 we added a couple of new messages (documented on the SDK) that will make CRM customizers/developers life easier. The messages are: CanBeReferenced, CanBeReferencing, CanManyToMany, GetValidManytoMany, GetValidReferencedEntities, GetValidReferencingEntities. Small sample:

 

  public static void relationshipsEligibilityTest(MetadataService metadataService)

  {

      GetValidManyToManyRequest getValidManyToManyRequest = new GetValidManyToManyRequest();

       GetValidManyToManyResponse getValidManyToManyResponse = (GetValidManyToManyResponse)
metadataService.Execute(getValidManyToManyRequest);

       foreach (string nextName in getValidManyToManyResponse.EntityNames)

       {

            Console.WriteLine(nextName);

       }

   }

Also, for RC0 what you see is what you get… meaning that the customizations UI will only show entities that are valid for a given kind of relationship. For example, if an entity is not available for N:N relationships the “New N:N..” button won’t appear. There may still be minor adjustments for RTM but we don’t expect any major changes in the relationships area.

Also note that there is an outdated relationship eligibility list in several Titan docs, including the “what is new” and the SDK. Our documentation team is in the process of updating the docs… we will probably update that list shortly or remove it all together (the list is not that useful now that we have APIs and the UI has been fixed).

Comments

  • Anonymous
    November 16, 2007
    PingBack from http://msdnrss.thecoderblogs.com/2007/11/16/relationships-eligibility-in-titan-crm-4/

  • Anonymous
    February 06, 2008
    Relationships in CRM 4.0 are quite powerful but hard to understand at first. There are so many moving

  • Anonymous
    February 14, 2008
    Relationships in CRM 4.0 are quite powerful but hard to understand at first. There are so many moving

  • Anonymous
    June 04, 2008
    If you are wondering what entities are eligible for which types of relationships , wonder no more, you can determine that programmatically using the Metadata API. For RC0 we added a couple of new messages (documented on the SDK) that will make CRM customizers/developer