Versions Compared

Key

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

...

Parameter

Type

Required

Description

sfdcConnection

SFDCConnection

Yes

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

sfdcAccountSFDCAccountYesStructure containing the fields of the account that will be created. This is a predefined structure type described below. When creating an account, only the Name field is required.
sfdcAPIVersionstringNoThe Salesforce API version to be called when creating the account, 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.


SFDCAccount fields

...

Note
titleNote
The Name field is required, the rest of the fields are optional.

...

Name

...

string

...

AccountNumber

...

Return type

...

See SFDCAccount for more details.

Return type

string - Salesforce Account ID

Example

The following example will create an account in Salesforce with the specified fields.

Code Block
SFDCConnection conn = connectToSalesforce("SFDC_test");

logPrint("WARN", "Connected to SF: " + conn.instance_url + " - " + conn.access_token);

SFDCAccount newAccount;
newAccount.Name = "Created with routine";
newAccount.Description = "This is my new account";
newAccount.NumberOfEmployees = 312;
newAccount.Industry = "Phone production";

string accId = sfdcCreateAccount(conn, newAccount);
logPrint("WARN",  "Created account with id: " + accId);

See also

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