How to create a method with parameters for use within a NAS
daans
Member Posts: 21
Hi,
In NAV 2016 (but I guess it'll be the same for NAV 2013/2015) I try to execute a method with parameters from a NAS Service:

However, I get the following error:

My function looks as following:

I've already taken a look at the "old" NAV 2015 function "NASHandler" and tried to use the same structure, but without success. I've also looked for any documentation on this subject, but I can't seem to find any that explains the required function definition.
Any ideas?
In NAV 2016 (but I guess it'll be the same for NAV 2013/2015) I try to execute a method with parameters from a NAS Service:

However, I get the following error:

My function looks as following:

I've already taken a look at the "old" NAV 2015 function "NASHandler" and tried to use the same structure, but without success. I've also looked for any documentation on this subject, but I can't seem to find any that explains the required function definition.
Any ideas?
0
Answers
-
Hi Daans,
For Startup Argument you need to define for what purpose NAS service will work for.
Option defined in is "OSYNCH" ,"JOBQUEUE" like that.
For NAS startup Codeunit if its 0 then NAS services is not running, If you provide 1 in that it means When NAS services start, they run the trigger specified by the NAS Startup Method in codeunit 1.
If you write 450 then it means When NAS services start, they run codeunit 450 (Job Queue - NAS Start Up), and call the method specified by NASStartupMethod
Keeping Startup parameter as Blank means It will run OnRun trigger of codeunit.
If you define STartNAS in it then NAS services runs the StartNAS method in the NAS Startup Codeunit.0 -
Pls ignore post.
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

