Options

HOW TO CREATE MULTIPLE CUSTOMERS FROM CONTACT TABLE USING C/SIDE CODE IN NAVISION2016

hai,
am fresher to MSDN
I want to right a code for creating multiple customers from contact table can any any one explain with example I wrote code for single customer

below is the code
customer2rec.INIT;
customer2rec.GET('20000');
contact2rec."No." := customer2rec."No.";
contact2rec.Name := customer2rec.Name;
contact2rec.Address := customer2rec.Address;
contact2rec."Phone No." := customer2rec."Phone No.";
contact2rec.INSERT;
please help me

Answers

  • Options
    lubostlubost Member Posts: 614
    1. Provided example attempts to create contact, not customer
    2. Do not use direct assign contact No. from customer No. Use No series instead.
    3. If you are not familiar in C/Side, do not any changes in standard processes
  • Options
    ShaiHuludShaiHulud Member Posts: 228
    Also, there are already standard functions that do what you want (and also what you showed). So if you need to do that, you don't need to look far, and if you just want to learn, then these objects could be a good place to learn:
    Report 5195 - Create Conts. from Customers (Customers -> Contacts)
    Page 5052 - Contact List (has Page Action "Create As... Customer")
Sign In or Register to comment.