Ms Crm Update Functionality RRS feed

  • General discussion

  • Hello guys ,

    Business :

    Our business uses ui to show customer details and list of phone no.

    User can add as many phone nos as he wishes to.
    If user want to delete existing phone and add new ones , he can.
    Also user can modify other detais like date of birth , first name present on Customer form.

    This data is linked to Ms Crm Databse so customer is parent entity and phone no is associated child entity.

    Requirement :

    In Siebel Crm , you can treat customer form data + associated phone no as single object and fire an update.
    Result is new data overwrites old data.

    In Ms Crm , I want to get all the data for customer from UI 
    and fire a method which will overwrite old customer data with new one including old phone no list replaced by new list of phone no.

    Problem with our approach :

    We tried to accomplish it and I found sdk method Update(Entity e) is restricted to entity level.
    So if you use it to update customer entity , it wont update it's associated childs.
    To deal with childs we need to write extra separate code which is what I want to avoid.
    As this code will not overwrite old list of phone with new list.
    We need to add comparison check in code and decide which phone no to delete and which phone no to add.
    This is surely degrading performance.

    Is there any method by Crm Sdk which can accomplish this ?

    If anyone has some idea , I would really appreciate it.

    Thanks ,
    Thursday, August 7, 2014 10:41 AM