ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / SaaS functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Assigns a subscriber license to a SaaS user.
Remarks:
  • To use this function, a SaaS management session must have been started previously with SaaSAdminConnect.
  • 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 saasUser
 
S = SaaSAdminFindSite("Forum")
P = SaaSAdminFindPricing("Promo 2010", S)
C = SaaSAdminFindClient("Hybrid")
Sub = SaaSAdminFindSubscription(P, C)
U = SaaSAdminFindUser("mark@hybrid.com")
 
// Allows the usernamed 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 get more details on the error, use ErrorInfo.
<Subscription>: saasSubscription variable
Name of the saasSubscription variable corresponding to the subscription that must be modified in the SaaS database.
<User>: saasUser variable
Name of the saasUser variable that identifies 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 get more details on the error, use ErrorInfo.
<Pricing>: Character string
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
Name of SaaS site that owns the pricing.
<User>: Character string
Login of user who receives a license allowing him to benefit from the subscription.
Component: wd290com.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help