PutSalesforceObject 2.0.0

Bundle
org.apache.nifi | nifi-salesforce-nar
Description
Creates new records for the specified Salesforce sObject. The type of the Salesforce object must be set in the input flowfile's 'objectType' attribute. This processor cannot update existing records.
Tags
put, salesforce, sobject
Input Requirement
REQUIRED
Supports Sensitive Dynamic Properties
false
  • Additional Details for PutSalesforceObject 2.0.0

    PutSalesforceObject

    Description

    Objects in Salesforce are database tables, their rows are known as records, and their columns are called fields. The PutSalesforceObject creates a new a Salesforce record in a Salesforce object. The Salesforce object must be set as the “objectType” attribute of an incoming flowfile. Check Salesforce documentation for object types and metadata. The processor utilizes NiFi record-based processing to allow arbitrary input format.

    Example

    If the “objectType” is set to “Account”, the following JSON input will create two records in the Account object with the names “SampleAccount1” and “SampleAccount2”.

    [
      {
        "name": "SampleAccount1",
        "phone": "1111111111",
        "website": "www.salesforce1.com",
        "numberOfEmployees": "100",
        "industry": "Banking"
      },
      {
        "name": "SampleAccount2",
        "phone": "22222222",
        "website": "www.salesforce2.com",
        "numberOfEmployees": "200",
        "industry": "Banking"
      }
    ]
    
Properties
Relationships
Name Description
success For FlowFiles created as a result of a successful execution.
failure For FlowFiles created as a result of an execution error.
Reads Attributes
Name Description
objectType The Salesforce object type to upload records to. E.g. Account, Contact, Campaign.
Writes Attributes
Name Description
error.message The error message returned by Salesforce.
See Also