web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Business Central forum

How Restrict Users from using D365 Business central App after trial Period ?

(0) ShareShare
ReportReport
Posted on by 2

Hello All,

I have published D365 Business Central App on Microsoft App source,

but how can i restrict users to user the App After Trial Period(30 Days).

i mean can anyone give me an idea to do a code to handle Trial Period in VS code?

Thanks,

Nishit Patel

I have the same question (0)
  • Nishit Profile Picture
    2 on at

    okey, but i have the Web service of type NAV SOAP, and for that we'll have to send  XML Request. so is it possible to send XML request like,

    Url := 'www.w3schools.com/.../tempconvert.asmx&;;

           reqText := '< CelsiusToFahrenheit xmlns=”www.w3schools.com/webservices”>' +

    '<Celsius>10</Celsius>' +

    '</CelsiusToFahrenheit>';

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    You can use HttpClient object: docs.microsoft.com/.../httpclient-class

  • Nishit Profile Picture
    2 on at

    Thanks for quick response,

    Can you provide some sample code to call SOAP Web services from VS code AL extension(for Cloud Extension Target version)?

    I have tried using dotnet variable's Code as follows, but it gives an error that we can not use dotnet variables in Extension Development.

    29_2D00_09_2D00_2018-12_2D00_40_2D00_34-PM.png

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    For custom licensing your app, you could create an activation function where you call a WS by passing the tenant ID where the app is installed and then returning a license key in an hidden table. In your objects you can che if there is this license key or not. This is just an idea. There’s not a standard way now to handle your app licensing.

  • Nishit Profile Picture
    2 on at

    Hi Stefano can you please give me the idea about custom licensing? using WS?

  • Verified answer
    Nishit Profile Picture
    2 on at

    Thanks a lot Stefano,

    I was exactly looking for this kind of solution.

    Thanks Again.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    If you mean a trial D365BC tenant, the solution is here:

    [View:https://demiliani.com/2018/08/02/dynamics-365-business-central-how-to-check-in-your-extension-is-running-on-a-trial-tenant/]

    If instead you mean a custom control for your app, you need to handle the “licensing” in a custom way now, for example calling a WS for activating the app or loading a license file and so on.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans