Retrieves a Salesforce Opportunity record with the given parameters.
This handler essentially has two phases: authentication and record retrieval.
The handler uses the SOAP API login method to retrieve the authentication details that are required for making the REST API requests. The required authentication values are instance and session id, these two values are retrieved by the login() helper method in the handler.
The handler uses the REST API to retrieve the Salesforce record. The handler's return variables are mapped from the Salesforce fields as show here (with the name of the Salesforce field on the left pointing to the name of the corresponding return variable):
Name => Opportunity Name
CloseDate => Close Date
StageName => Stage
IsPrivate => Private
Type => Type
LeadSource => Lead Source
Amount => Amount
NextStep => Next Step
Probability => Probability
The username of the account that will be used for record manipulation.
The password of the account that will be used for record manipulation
The security token associated with the account used for record manipulation To reset this value, log into Saleforce using the desired account and navigate to Setup -> My Personal Information -> Reset Security Token. A new token will be emailed to you.
The Id of the Salesforce Opportunity record that will be retrieved
The Opportunity Name field of the Opportunity record