Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Syntax

sfdcGetOpportunity(sfdcConnection, sfdcOpportunityId, [sfdcAPIVersion])

Description

Excerpt

Retrieves data related to an opportunity from the Salesforce environment.

Parameters

Parameter

Type

Required

Description

sfdcConnection

SFDCConnection

Yes

The

Salesforce Connection - it is the object resulted from the call to the connectToSalesforce routine.

sfdcOpportunityIdstringYes
The
ID of the Salesforce opportunity to be retrieved.
sfdcAPIVersionstringNo
The
Salesforce API
Version
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
required and if empty, the latest available version will be used.

Return type

SFDCOpportunity (predefined type)

Example

The following example will retrieve information about the opportunity ins Salesforce.

Code Block
SFDCConnection conn = connectToSalesforce("SFDC_test");
logPrint("WARN", "Connected to SF: " + conn.instance_url + " - " + conn.access_token);

SFDCOpportunity opp;

opp = sfdcGetOpportunity(conn, "opportunity ID", "v43.0");
logPrint("WARN", "Retrieved opportunity: " + opp.Name);


See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "sfdc_routines"
labelsbasic_routines