Use object in Extension from another Extension

JuhlJuhl Posts: 523Member
edited 2018-03-28 in NAV Three Tier
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??
Follow me on my blog juhl.blog

Best Answers

Answers

  • MesutGMesutG Posts: 13Member
    Hi,

    You can use extension objects . You must use "Run" function an "extension ID". For Example

    ccx080zcysj4.png
  • JuhlJuhl Posts: 523Member
    That works :-)

    But what if I want to call a function in that codeunit?
    Follow me on my blog juhl.blog
  • JuhlJuhl Posts: 523Member
    Ok, as a workaround.
    Follow me on my blog juhl.blog
  • JuhlJuhl Posts: 523Member
    Thanks Mohana
    Will check it out after Easter
    Follow me on my blog juhl.blog
  • DenSterDenSter Posts: 8,115Member
    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 file
  • JuhlJuhl Posts: 523Member
    Thanks :-)
    Follow me on my blog juhl.blog
Sign In or Register to comment.