Use object in Extension from another Extension
Juhl
Member Posts: 724
Hi guys
Just playing around with extensions on a D365BC preview Docker image, and ran in to a question.
Can i create a Extension with say a Codeunit with some functions in it.
And then create another Extension that uses these functions.
AL dosent see it, even when downloading symbols after the first extension is installed.
There is a command in AL to Download SourceCode, but it dosent work, and i dont know what its for.
Anyone??
Just playing around with extensions on a D365BC preview Docker image, and ran in to a question.
Can i create a Extension with say a Codeunit with some functions in it.
And then create another Extension that uses these functions.
AL dosent see it, even when downloading symbols after the first extension is installed.
There is a command in AL to Download SourceCode, but it dosent work, and i dont know what its for.
Anyone??
Follow me on my blog juhl.blog
0
Best Answers
-
I am writing functions that I want to use in the OnRun function of the codeunit and this is an if statement.5
-
Check the function property wheher it is exposed as external.
2nd extension should be marked as dependent of extension 15 -
Let's say you have extension A and extension B. In A, you have created some functionality that you want to use in B. You will need to create a dependency in the app.json file for B, to extension A. When you save app.json, you run 'download symbols' again, and that should now get the symbols for A into your workspace, and from that moment on, you will see the extension A symbols in your extension B workspace.5
Answers
-
Hi,
You can use extension objects . You must use "Run" function an "extension ID". For Example
0 -
I am writing functions that I want to use in the OnRun function of the codeunit and this is an if statement.5
-
Check the function property wheher it is exposed as external.
2nd extension should be marked as dependent of extension 15 -
Let's say you have extension A and extension B. In A, you have created some functionality that you want to use in B. You will need to create a dependency in the app.json file for B, to extension A. When you save app.json, you run 'download symbols' again, and that should now get the symbols for A into your workspace, and from that moment on, you will see the extension A symbols in your extension B workspace.5
-
By the way, when you set up the dependency, rebuilding the package for extension B will also get the symbols for extension A, and so does hitting F5 or Ctrl+F5. Try it, delete the .app file for extension A from the workspace for extension B and see what happens when you rebuild the .app file0
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
- 322 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

