Skip to end of metadata
Go to start of metadata

Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.

Syntax

sfdcGetOpportunity(sfdcConnection, sfdcOpportunityId, [sfdcAPIVersion])

Description

Retrieves data related to an opportunity from the Salesforce environment.

Parameters

Parameter

Type

Required

Description

sfdcConnection

SFDCConnection

Yes

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

sfdcOpportunityIdstringYesID of the Salesforce opportunity to be retrieved.
sfdcAPIVersionstringNoSalesforce 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 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.

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

There is no content with the specified labels