locked
CRM 4.0 associating contacts to organisation RRS feed

  • Question

  • hi there,

    using the crm web service - i want to associate 1 or more contact entities to an organisation entity.  (I have read that organisation is actually account?) 

    but does anyone know of a good article to explain how to do this?

    or does anyone know what the name of the "join" entity is that links orgs to contacts? 

    im assuming there is a join as it is a many to many relationship.

    thankyou very much

     

     

     

     

    Thursday, February 17, 2011 5:02 PM

Answers

  • i think i have solved my own problem

     

     

    var account = new account();

     

    var crm = new contact();

    crm.parentcustomerid.type =

    EntityName.account.ToString();

    crm.parentcustomerid.Value = account.accountid.Value;

     

    • Marked as answer by Jim Glass Jr Thursday, February 17, 2011 9:14 PM
    Thursday, February 17, 2011 6:57 PM

All replies

  • just wanted to add that - i need to be able to add multiple contacts to a single organisation.

     

    thanks

    Thursday, February 17, 2011 5:14 PM
  • i think i have solved my own problem

     

     

    var account = new account();

     

    var crm = new contact();

    crm.parentcustomerid.type =

    EntityName.account.ToString();

    crm.parentcustomerid.Value = account.accountid.Value;

     

    • Marked as answer by Jim Glass Jr Thursday, February 17, 2011 9:14 PM
    Thursday, February 17, 2011 6:57 PM