COMPANYNAME Vs Company.Name

navuser1
Member Posts: 1,334
Dear Sir,
What is the correct procedure to use the COMPANYNAME instead of "Company.Name" in C/AL programming ?
In a scenario we'r using the COMPANYNAME in the Mail body and the "Company.Name" in a NAV report which is being used as a attachment (as PDF format) with the mail.
We have found that COMPANYNAME is appearing sometimes wrong but "Company.Name" is giving always right information.
May I know what is the reason behind that issue ?
What is the correct procedure to use the COMPANYNAME instead of "Company.Name" in C/AL programming ?
In a scenario we'r using the COMPANYNAME in the Mail body and the "Company.Name" in a NAV report which is being used as a attachment (as PDF format) with the mail.
We have found that COMPANYNAME is appearing sometimes wrong but "Company.Name" is giving always right information.
May I know what is the reason behind that issue ?
Now or Never
0
Comments
-
hi
Thas because, COMPANYNAME is a database level function which return the Company name you opened (under File-->Company-->Open). But, you normally store the legal name of the company in Company Information table. Name is a filed of that table.
When referring to legal names, please store them in Company Information and use it in reports."A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."0 -
The two COMPANYNAME and Company.Name are used in Mail.
Users first open a Sales Order and then Post the SO, during the posting a Mail is generated and send to the respected customer mail ID.
COMPANYNAME name appeared wrong but Company.Name is giving the right information.Now or Never0
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