PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SaaSAdminSubscriptionDeallocateLicense (Function)
In French: SaaSAdminDésactiveLicence
Cancels a subscription license for a SaaS user.
Notes:
  • To use this function, a SaaS management session must have been started beforehand by SaaSAdminConnect.
  • Versions 16 and later
    The SaaS Administrator will have access to all licenses. A client account manager will only have access to the licenses of his users.
    New in version 16
    The SaaS Administrator will have access to all licenses. A client account manager will only have access to the licenses of his users.
    The SaaS Administrator will have access to all licenses. A client account manager will only have access to the licenses of his users.
Example
S is SaaSSite dynamic
P is SaaSPricing dynamic
C is SaaSClient dynamic
Sub is SaaSSubscription dynamic
U issaasUser dynamic

S = SaaSAdminFindSite("Forum")
P = SaaSAdminFindPricing("Promo 2010", S)
C = SaaSAdminFindClient("Hybrid")
Sub = SaaSAdminFindSubscription(P, C)
U = SaaSAdminFindUser("mark@hybrid.com")

// The user named Mark is no longer allowed to benefit from the promotion 2010
SaaSAdminSubscriptionDeallocateLicense(Sub, U)
Syntax

Removing a license by using the subscription Hide the details

<Result> = SaaSAdminSubscriptionDeallocateLicense(<Subscription> , <User>)
<Result>: Boolean
  • True if the operation was performed,
  • False otherwise. To find out the error details, use ErrorInfo.
<Subscription>: saasSubscription variable
Name of saasSubscription variable corresponding to the subscription that will be modified in the SaaS database.
<User>: saasUser variable
Name of saasUser variable identifying the user from whom the license will be removed. This user cannot use the subscription anymore.

Removing a license by using the pricing Hide the details

<Result> = SaaSAdminSubscriptionDeallocateLicense(<Pricing> , <SaaS Site> , <User>)
<Result>: Boolean
  • True if the operation was performed,
  • False otherwise. To find out the error details, use ErrorInfo.
<Pricing>: Character string (with quotes)
Name of relevant pricing.
A subscription linked to this pricing must exist for the client account of user.
<SaaS Site>: Character string (with quotes)
Name of site that owns the pricing.
<User>: Character string (with quotes)
Login of user from whom the license will be removed. This user cannot use the subscription anymore.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Linux wd230com.so
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment