ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Salesforce functions
  • Properties specific to sfLeadConvert variables
  • Functions that handle the sfConvertLead type
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
sfLeadConvert (Type of variable)
In french: sfConversionPiste
The sfLeadConvert type is used to describe the conversion parameters of a lead. The characteristics of this type of variable can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Remarks

Properties specific to sfLeadConvert variables

The following properties can be used to handle the description of the conversion of a lead:
Name Type used Effect
OverwriteLeadSourceBoolean
  • True to overwrite the "Origin of the lead" item of the target contact with the content of the "Origin of the lead" item of the lead to convert,
  • False not to overwrite this information.
SendNotificationEmailBoolean
  • True if a notification of conversion must be sent by email to the manager of the lead,
  • False to perform no action.
AccountIDCharacter stringIdentifier of the account in which the lead will be merged. If this property is specified, the specified account will be updated. If this property corresponds to an empty string, a new account will be created.
Important: If the "AccountID" property is specified, the "ContactID" property does not need to be specified.
ContactIDCharacter stringIdentifier of the contact in which the lead will be merged. If this property is specified, the specified contact will be updated. If this property corresponds to an empty string, a new contact will be created.
LeadIDCharacter stringIdentifier of the lead to convert. This property must necessarily be specified.
OwnerIDCharacter stringIdentifier of the person who owns the new account, contact or opportunity. By default, the owner is the owner of the lead.
DoNotCreateOpportunityBoolean
  • True to create no opportunity during the conversion,
  • False to create an opportunity.
By default, an opportunity is automatically created.
OpportunityNameCharacter stringName of the opportunity to create. If this property corresponds to an empty string, the name of the company associated with the lead is used.
ConvertedStatusCharacter stringValue of the valid status for the converted lead. The statuses are defined by the administrator. To be proposed, the status must be checked for the "Converted" column.
This property is mandatory.
Remark: The possible values can be known through programming by running the following query with SFExecuteQuery: "SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true").

Functions that handle the sfConvertLead type

SFConvertLeadConverts the leads.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help