ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Salesforce functions
  • Properties specific to sfLeadConvert variables
  • Functions that use the sfConvertLead type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
sfLeadConvert (Variable type)
In french: sfConversionPiste
The sfLeadConvert type is used to describe the conversion parameters of a lead. 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.
Properties

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 is set to an empty string, a new account will be created.
Important If the "IDAccount" property is set, the "IDContact" property must not be set.
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 is set to an empty string, a new contact will be created.
LeadIDCharacter stringIdentifier of the lead to convert. This property must 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 is set 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 must be specified.
Note The possible values can be programmed by executing the following query with function SFExecuteQuery: "SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true").
Remarks

Functions that use 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: 03/28/2025

Send a report | Local help