Syntax
sfdcCreateOpportunity(sfdcConnection, sfdcOpportunity, [sfdcAPIVersion])
Description
Creates an opportunity in the Salesforce environment.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
sfdcConnection | SFDCConnection | Yes | The Salesforce Connection - it is the object resulted from the call to connectToSalesforce routine |
sfdcOpportunity | SFDCOpportunity | Yes | Structure containing the fields of the opportunity that will be created. This is a predefined structure type described below. When creating an opportunity, there are three mandatory fields that must have values: Name, CloseDate, StageName. |
sfdcAPIVersion | string | No | The Salesforce API Version to be called when creating the opportunity; it should have the following form: "vXX.X" - eg: "v43.0", "v42.0". It is not mandatory, if missing the latest available version will be used. |
SFDCOpportunity type:
Name | Field | Type |
---|---|---|
SFDCOpportunity | CloseDate | date |
Name | string | |
StageName | string | |
AccountId | string | |
Amount | number | |
Description | string | |
LeadSource | string | |
NextStep | string | |
Probability | number | |
Type | string |
Return type
string - the Salesforce Opportunity ID
See also