Subscription Expired Exception

Subscription Expired Exception

This exception occurs when your subscription expired.

Please follow the steps below to request a renewal while also mitigating the impact so you can get back to what you were doing as soon as possible.

1. Request a renewal

Request a renewal of your subscription to DynamicsValue via your line manager and your organisation’s established process. Once you have confirmed this has been requested, then follow the steps below.

Note: Please make sure the renewal also covers the necessary users you’ll need for the next billing cycle.

2. Enable the ‘renewal requested’ flag

There is flag that will give you an extra month to use the expired license key while a new license key is generated for you.

In order to do this, a user will need to update their middleware setup to set the renewalRequested flag to true as follows:

public FakeXrmEasyCommercialLicenseTestsBase()
{
    _context = MiddlewareBuilder
                .New()

                .AddCrud()
                .AddFakeMessageExecutors(Assembly.GetAssembly(typeof(AddListMembersListRequestExecutor)))

                .UseCrud()
                .UseMessages()

                .SetLicense(FakeXrmEasyLicense.Commercial)
                
                //Set renewalRequested
                .SetSubscriptionStorageProvider(new SubscriptionBlobStorageProvider(), renewalRequested: true)
                .Build();

    _service = _context.GetOrganizationService();
}

3. Distribute the new license key and disable the renewal requested flag

Once you receive the new license key, you’ll need to distribute it to your developers following the steps in this guide: Apply your license key.

Once the new key is in place, please disable the renewal requested flag again, otherwise, you won’t get the extra 30 day ish window for the next renewal in time:

public FakeXrmEasyCommercialLicenseTestsBase()
{
    _context = MiddlewareBuilder
                .New()

                .AddCrud()
                .AddFakeMessageExecutors(Assembly.GetAssembly(typeof(AddListMembersListRequestExecutor)))

                .UseCrud()
                .UseMessages()

                .SetLicense(FakeXrmEasyLicense.Commercial)
                
                //Undo renewalRequested (it'll default to false if not present)
                .SetSubscriptionStorageProvider(new SubscriptionBlobStorageProvider())
                .Build();

    _service = _context.GetOrganizationService();
}