ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Salesforce functions
  • Properties specific to sfDisconnectResult variables
  • Functions that use the sfDisconnectResult type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
sfDisconnectResult (Variable type)
In french: sfRésultatDéconnecte
The sfDisconnectResult type is used to get the status report of SFDisconnect when disconnecting from a session. You can define and change the characteristics of this type of variable using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Connect to Salesforce
Cnt is sfConnection
Cnt.Login = "balthazar@gmail.com"
Cnt.Password = "qwerty" + "XXB12VCZ54"
IF SFConnect(Cnt) = False THEN
Error("The connection failed")
RETURN
END
...
// Disconnection (second syntax)
MySessions is array of strings
Add(MySessions, Cnt.SessionInfo.SessionID)
MyResult is array of sfDisconnectResult
IF SFDisconnect(Cnt, MySessions, MyResult) = False THEN
 Error("A disconnection failed")
 Trace(MyResult[1].Success) // Displays 0
END
Properties

Properties specific to sfDisconnectResult variables

The following properties can be used to handle the status report of SFDisconnect:
Property nameType usedEffect
ErrorArray of sfErrorStatus report of errors.
SuccessBoolean
  • True if the disconnection was performed,
  • False otherwise.
This property is read-only.
Remarks

Functions that use the sfDisconnectResult type

SFDisconnectDisconnects:
  • the Salesforce platform.
  • the current Salesforce session.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/19/2024

Send a report | Local help