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
Assigns a subscriber license to 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
P is SaaSPricing
C is SaaSClient
Sub is SaaSSubscription
U is SaaSUtilisateur

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

// Allows the user named mar@hybrid.com benefit from the promotion 2010
SaaSAdminSubscriptionAllocateLicense(Sub, U)
Syntax

Allocating a license on a subscription Hide the details

<Result> = SaaSAdminSubscriptionAllocateLicense(<Subscription> , <User>)
<Result>: Boolean
  • True if the allocation 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 relevant user. This user receives a license allowing him to benefit from the subscription.

Allocating a license on a pricing Hide the details

<Result> = SaaSAdminSubscriptionAllocateLicense(<Pricing> , <SaaS Site> , <User>)
<Result>: Boolean
  • True if the allocation was performed,
  • False otherwise. To find out the error details, use ErrorInfo.
<Pricing>: Character string (with quotes)
Name of relevant pricing. A subscription must be associated with this pricing for the client account to which the user belongs.
<SaaS Site>: Character string (with quotes)
Name of SaaS site that owns the pricing.
<User>: Character string (with quotes)
Login of user who receives a license allowing him to benefit from the subscription.
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