PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of sfConnection variables
  • Functions that handle the sfConnection type
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
sfConnection (Type of variable)
In French: sfConnexion (Type de variable)
The sfConnection type is used to describe a connection to the Salesforce platform and to manage the user authentication. The characteristics of this type of variable can be defined and modified by several WLanguage properties.
SFConnect is used to check the validity of connection information.
Note: See Declaring a variable for more details.
Versions 20 and later
WINDEVLinux This type of variable is now available for the WINDEV applications in Linux.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
New in version 20
WINDEVLinux This type of variable is now available for the WINDEV applications in Linux.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
WINDEVLinux This type of variable is now available for the WINDEV applications in Linux.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
Example
// Connection to Salesforce
Cnt is sfConnection
Cnt..Login = "vince@gmail.com"
Cnt..Password = "azerty" + "XXB12VCZ54"
IF SFConnect(Cnt) = False THEN
        Error("The connection failed")
END
Remarks

Properties specific to the description of sfConnection variables

The following properties can be used to handle a Salesforce connection:
Property nameType usedEffect
SessionInfosfSessionInfoData about the current session. This property is filled after authentication.
This property is available in read-only.
LoginCharacter stringLogin of user.
Versions 15 and later
SandboxMode
New in version 15
SandboxMode
SandboxMode
Boolean
  • True if the "Sandbox" mode is enabled (connection to the test server)
  • False otherwise.
PasswordCharacter stringPassword for the connection. A security token supplied by Salesforce must be added to this password.
LoginServerURLCharacter stringURL of the server to use. This property is optional. If this property is specified, it is used for the authentication.

Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that handle the sfConnection type

Versions 14 and later
SFAdd
New in version 14
SFAdd
SFAdd
Creates a record in a file of a Salesforce database.
Versions 14 and later
SFConnect
New in version 14
SFConnect
SFConnect
Allows you to authenticate yourself beside a Salesforce platform.
Versions 14 and later
SFConvertLead
New in version 14
SFConvertLead
SFConvertLead
Converts the leads.
Versions 14 and later
SFDelete
New in version 14
SFDelete
SFDelete
Deletes records from a Salesforce database.
Versions 14 and later
SFDisconnect
New in version 14
SFDisconnect
SFDisconnect
Disconnects:
  • the Salesforce platform.
  • the current Salesforce session.
Versions 14 and later
SFEmptyRecycleBin
New in version 14
SFEmptyRecycleBin
SFEmptyRecycleBin
Clears the specified records from the Salesforce recycle bin.
Versions 14 and later
SFExecuteProcess
New in version 14
SFExecuteProcess
SFExecuteProcess
Requests the execution of a specific process.
Versions 14 and later
SFExecuteQuery
New in version 14
SFExecuteQuery
SFExecuteQuery
Runs an SOQL query (Salesforce Object Query Language) on a Salesforce database.
Versions 14 and later
SFForwardQuery
New in version 14
SFForwardQuery
SFForwardQuery
Continues to run a SOQL query (Salesforce Object Query Language) on the records of a Salesforce database.
Versions 14 and later
SFMerge
New in version 14
SFMerge
SFMerge
Merges the Salesforce records (also called Salesforce objects).
Versions 14 and later
SFModify
New in version 14
SFModify
SFModify
Modifies the records of a file defined in Salesforce.
Versions 14 and later
SFRead
New in version 14
SFRead
SFRead
Retrieves the Salesforce records from their identifiers.
Versions 14 and later
SFSearch
New in version 14
SFSearch
SFSearch
Performs a search among the records found in a Salesforce database.
Versions 14 and later
SFSeekDeleted
New in version 14
SFSeekDeleted
SFSeekDeleted
Seeks and retrieves the records (Salesforce objects) deleted during the specified period.
Versions 14 and later
SFSeekModified
New in version 14
SFSeekModified
SFSeekModified
Seeks and retrieves the records (Salesforce objects) modified during the specified period.
Versions 14 and later
SFUndelete
New in version 14
SFUndelete
SFUndelete
Restores the Salesforce records that were previously erased.
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment