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

Harish8500
Member Posts: 2
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
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
0
Answers
-
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 processes0 -
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")
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions