Consolidation of customer

vijay_gvijay_g Member Posts: 884
Hi,
i have five customer for different-2 code after many transaction for each customer now i want to consolidate into one customer out of them. what can be best solution.

Comments

  • ara3nara3n Member Posts: 9,256
    Here is an example on how to do it.

    http://mibuso.com/forum/viewtopic.php?f ... t=Customer


    This technique allows you to merge customers vendors gl accounts.

    You can use it to combine douplicate customers contacts or combine old customers that you no longer use.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • matttraxmatttrax Member Posts: 2,309
    The reason this code works (from the other post):

    CustA.get(A);
    CustA.Delete;
    CustB.get(B);
    CustB.rename(A);

    is because the second line, CustA.DELETE, does not pass TRUE as a parameter. So only THAT record is deleted, nothing with a table relation and nothing in the OnDelete trigger is processed. So when you rename the other customer to the deleted one, the other records are still there and they "merge" together.
Sign In or Register to comment.