Converts the leads. These leads can be converted into account, contact or opportunity.
Remark: A lead is a prospect or a potential opportunity. See the help of Salesforce for more details.
<Result> = SFConvertLead(<Salesforce connection> , <Conversion to perform>)
<Result>: Array variable
Array of sfLeadConvertResult variable containing the conversion results.
<Salesforce connection>: sfConnection variable
Name of the variable of type sfConnection to be used.
<Conversion to perform>: Array variable
Array of sfLeadConvert variables containing the different conversions to perform.
Possible error cases:
- The Internet connection is not valid.
- The authentication was not performed properly.
- The XML response of the server cannot be read.
To find out whether an error occurred, use the ErrorOccurred