Question about Single Instance CodeUnit

tompynationtompynation Member Posts: 398
Hi,

Suppose you created a singleinstance CU: 50000, CopyData

This CodeUnit contains 2 Methods, CopyA & CopyB

Then you create 2 new singleinstance CU: 50001, 50002

CU 50001 just calls the CopyA method from CodeUnit 50000
AND
CU 50002 calls the CopyB method from CodeUnit 50000

When you now Run CodeUnit 50001 in Company A,
and Run CodeUnit 50002 in Company B,

Will these two codeunits (50001,50002) then be running in the 2 different companies or will this not work cause
CodeUnit 50000 is an SingleInstance also?

Comments

  • BeliasBelias Member Posts: 2,998
    different companies = different single instance codeunit values
    change company = clear single instance codeunit

    so i don't think it will works as you probably expect :|
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • kinekine Member Posts: 12,562
    Singleinstance = single instance for the one client instance, not system-wide
    one client instance = one company
    if you want to transfer data between companies, you cannot do it through singleinstance codeunits.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.