Dynamics NAV 2018 – Extension V2 – Challenges with VSC-AL and internal objects

bek@naveksa.dk
Member Posts: 5
in General Chat
Should there be a clever person out there who has an answer to the 2 following questions
1. NAV system tables not recognized in VSC-AL:[/b]
“The type or method 'XXX' cannot be used for 'Extension' development”
Where ‘XXX’ is defined as a Record var pointing to a system table,
e.g. Table 2000000072 Profile
T. 2000000022 File
T. 2000000112 Server Instance
T. 2000000076 Web Service
2. Use/Reference of functions on standard objects defined as Internal
“The type or method 'XXX' cannot be used for 'Extension' development”
Where ‘XXX’ is a function on a standard table or codeunit,
e.g. Table 900, Assembly Header, fct. AddBOMLine, property FunctionVisibility = Internal
T. 901, Assembly Line, fct. ValidateDueDate, property FunctionVisibility = Internal
Best regards,
Bent Korsgaard
NAVEKSA A/S
1. NAV system tables not recognized in VSC-AL:[/b]
“The type or method 'XXX' cannot be used for 'Extension' development”
Where ‘XXX’ is defined as a Record var pointing to a system table,
e.g. Table 2000000072 Profile
T. 2000000022 File
T. 2000000112 Server Instance
T. 2000000076 Web Service
2. Use/Reference of functions on standard objects defined as Internal
“The type or method 'XXX' cannot be used for 'Extension' development”
Where ‘XXX’ is a function on a standard table or codeunit,
e.g. Table 900, Assembly Header, fct. AddBOMLine, property FunctionVisibility = Internal
T. 901, Assembly Line, fct. ValidateDueDate, property FunctionVisibility = Internal
Best regards,
Bent Korsgaard
NAVEKSA A/S
0
Answers
-
I see two observations, but not a single question. What is it that you want to know?0
-
I will try to elaborate
1)
Since System tables are no longer accessible, what are the alternatives? How to create a Profile for Role Center programmatically now?
2)
The add-on is based on standard functionality which is no longer accessible, since they are internal. What is the recommended approach?
Is there a list of functionality no longer accessible and alternatives somewhere, so we can reprogram it?
Hope this makes sense?0 -
Come to Mibuso TechDays where you will find many answers and many knowledgeable people. Also sign up for 2 days of the pre-conference workshops before they are all filled up.
Well worth the money.David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
Hi David
A very good suggestions, we have been there the past 3 or 4 years. That does not help us right now, though. Since we aim to have a solution out in a couple of months we cannot wait for november to get started0 -
Hi guys,
Do we have any update / solution for those questions? Mind to share? Thanks.0 -
First: profiles se this:
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-profile-object
I have not yet worked with it but i seems to be the way.
Second: Every time i need to use some functionality which is not accessible from AL mostly functions on tables and in codeunits, i look into the code and if possible copy it or re-write it, this is not allways possible but there is not one single approache to it, every day you learn more and more of what can be done and what can not be done. Look in the code for event triggers there is a lot now, and be aware that you some times needs to re-think your solution to get it to work.
1 -
hi welander,
Thank you for your feedback and advise.
Look like beside requesting microsoft to change the functionVisibility to external, the only approach is to copy it or re-write it if possible.
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