SBX - Search With Button

SBX - Forum Post Title

Restrict exceeded users to install our NAV Addon application

Microsoft Dynamics NAV Forum

Vikas Saxena asked a question on 11 Jul 2018 12:22 AM

Question Status

Suggested Answer

Hi NAV experts.

I want to know that how my addon solution is getting publish on demo license machine,
We want to protect my solution, it should not publish with demo license.

We should pull out the user count in Navsion and we have to stop the users(While Installation)
if purchase license users go out of limit. ?


Means we have given 5 users licenses to customer to access my application and if 6th user install our application,
we want to restrict that user to install our application.

Kindly help us if possible in CAL/CSide environment.

Reply
Suggested Answer

You can check the Active Session table and detect how many users are connected, then if > 5 throws an error. This can be managed in a codeunit and triggered in your addon objects while opening them.

There's no way to control the installation phase because in C/AL it's just an object import.

Reply
Vikas Saxena responded on 11 Jul 2018 8:58 AM

Hi Stefano.

We are creating extension(navx) file to deliver our solution, but during testing we found that if this extension is installed on one navision service(Dynamics NAV110) system, it is allowing to installed on another system or different navision service, we have to restrict this and we want that it should work on single service system only.

Please suggest.

Reply
Suggested Answer

You can retrieve NAV Service Tier name in the way described above and then work accordingly.

Reply
Vikas Saxena responded on 23 Jul 2018 2:18 AM

Hi Stefano,

Thanks for your continues suggestions and helpful reply on our queries.

Could you brief us the solution about my last below mention query?

"We are creating extension(navx) file to deliver our solution, but during testing we found that if this extension is installed on one navision service(Dynamics NAV110) system, it is allowing to installed on another system or different navision service also, we have to restrict this and we want that it should work on single service system only, and our addon solution is getting publish on demo license machine,

We want to protect our solution, it should not get published with demo license."

Please suggest for the same.

Reply
Suggested Answer

You cannot avoid the installation. The navx file installation is performed by an administrator and by using Powershell. An admin can take the navx file and install it on different NAV service tier.

What you could check is inside your extension (code) you can read the service tier information and block if it's not one in your custom license.

You've to invent a custom trick, there's no built-in way to avoid this.

Reply
Vikas Saxena responded on 23 Jul 2018 3:19 AM

Thanks for your prompt reply Stefano..

How to read the service tier information in NAV, means from where to get it.?

Reply
Suggested Answer

The solution I've used is described here:

www.kauffmann.nl/.../read-server-tenant-settings-from-cal-code

Reply
Vikas Saxena responded on 24 Jul 2018 5:27 AM

Hi Stefano,

Could you please explain us that if we get new customer(Who will use our addon solution) in Navision, ?

What are the steps to register the customer and how to provide Navision license to that customer. ?

Kindly suggest.

Reply
Suggested Answer

This is a totally different question. A NAV customer that wants your addon must acquire that from you. Then you can update its NAV license by adding your addon module (object ranges) to the license via PartnerSource.

Reply
Suggested Answer

You can check the Active Session table and detect how many users are connected, then if > 5 throws an error. This can be managed in a codeunit and triggered in your addon objects while opening them.

There's no way to control the installation phase because in C/AL it's just an object import.

Reply
Suggested Answer

You can retrieve NAV Service Tier name in the way described above and then work accordingly.

Reply
Suggested Answer

You cannot avoid the installation. The navx file installation is performed by an administrator and by using Powershell. An admin can take the navx file and install it on different NAV service tier.

What you could check is inside your extension (code) you can read the service tier information and block if it's not one in your custom license.

You've to invent a custom trick, there's no built-in way to avoid this.

Reply
Suggested Answer

The solution I've used is described here:

www.kauffmann.nl/.../read-server-tenant-settings-from-cal-code

Reply
Suggested Answer

This is a totally different question. A NAV customer that wants your addon must acquire that from you. Then you can update its NAV license by adding your addon module (object ranges) to the license via PartnerSource.

Reply

SBX - Two Col Forum

SBX - Migrated JS