Condition code for NAS or client

DybsDybs Member Posts: 5
I want to condition code in a codeunit for file handling dependant upon whether the code is called from the Nas (server side) versus called from the client directly. If the latter I need to use a UNC path so want to use dotnet file handling but I can't use that for NAS as it give callback error so I want to use file virtual table for NAS.
This is in 2016. Ideally I need something similar to isservicetier. Any ideas out there?

Best Answer

Answers

  • BeliasBelias Member Posts: 2,998
    GUIALLOWED > if yes, you are on a client; if no, you are on nas or in a ws call
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • BeliasBelias Member Posts: 2,998
    Just one more bonus suggestion:
    take a look at CURRENTCLIENTTYPE instruction...it won't be useful for this particular problem, but you can probably found some use of it in your project.
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.