ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WEBDEV 2025 feature!
Help / WLanguage / WLanguage functions / Communication / SaaS functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Lists SaaS subscription licenses associated with a user.
Note: This function is only available from version 2025 Update 1.
Example
IF NOT SaaSAdminConnect(username, password, server) THEN
	RETURN
END
// List the users
arrUser is array of saasUser = SaaSAdminListUser()
IF arrUser.Count = 0 THEN
	RETURN
END
// List sites
arrSite is array of saasSite = SaaSAdminListSite()
IF arrSite.Count = 0 THEN
	RETURN
END
// List available subscriptions
arrSubscription is array of saasSubscription = SaaSAdminListSubscription(arrSite[1])
IF arrSubscription.Count = 0 THEN
	RETURN
END
// List user licenses
Subscriptions_user_Before is array of saasSubscription = SaaSAdminSubscriptionListLicense(arrUser[1])
// Allocate license
IF NOT SaaSAdminSubscriptionAllocateLicense(arrSubscription[1], arrUser[1]) THEN
	RETURN
END
// List licenses
Subscriptions_user_ is array of saasSubscription = SaaSAdminSubscriptionListLicense(arrUser[1])
// Deallocate license
SaaSAdminSubscriptionDeallocateLicense(arrSubscription[1], arrUser[1])
// List licenses after deallocation
Subscriptions_user_After is array of saasSubscription = SaaSAdminSubscriptionListLicense(arrUser[1])
Info("Before " + Subscriptions_user_Before.Count, "During " + Subscriptions_user_.Count, 
	"After " + Subscriptions_user_After.Count)
Syntax
<Result> = SaaSAdminSubscriptionListLicense(<User>)
<Result>: Array of saasSubscription variables
saasSubscription variable containing the list of subscription licenses for the specified user.
<User>: saasUser variable
Name of the saasUser variable that corresponds to the user whose subscriptions are to be listed.
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/14/2025

Send a report | Local help