locked
Update Parent entity and child entities in Ms Crm by c# RRS feed

  • Question

  • Hello guys ,

    I want to update ms crm parent record and child records
    so that only mismatched child entities are considered keeping matching child entities untouched

    example account has some fields on form and some phone numbers as associated child entities
    Phone no are linked to account as child entity
    Old Account Data : 1234 , 5678 ,9101112 as phone no
            New Data         : 1234 , 6789   as Phone no

    I want to
    Insert : 6789 , Delete : 5678 ,9101112 Keep 1234 untouched
    But our code 
    Deletes all phone no and
    then inserts 1234 , 6789

    Is there any method provided by crm sdk that will automatically do this
    Or any other way to do this
    I do not want to check this manually.
    If anyone has some idea , I would really appreaciate it
    Wednesday, August 6, 2014 9:40 AM