Skip to end of banner
Go to start of banner

Create Salesforce opportunity

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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

sfdcOpportunitySFDCOpportunityYesStructure 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.
sfdcAPIVersionstringNoThe 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:

NameFieldType

SFDCOpportunity 


CloseDate

date

Name

string

StageNamestring
AccountIdstring
Amountnumber
Descriptionstring
LeadSourcestring
NextStepstring
Probabilitynumber
Typestring


Return type

string - the Salesforce Opportunity ID

See also

  • No labels