Supports Expression Language: true (will be evaluated using variable registry only)API Version | salesforce-api-version | 54.0 | | The version number of the Salesforce REST API appended to the URL after the services/data path. See Salesforce documentation for supported versions Supports Expression Language: true (will be evaluated using variable registry only) |
Query Type | query-type | Property Based Query | - Property Based Query
- Custom Query
| Choose to provide the query by parameters or a full custom query. |
Custom SOQL Query | custom-soql-query | | | Specify the SOQL query to run. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
This Property is only considered if the [Query Type] Property has a value of "Custom Query". |
sObject Name | sobject-name | | | The Salesforce sObject to be queried Supports Expression Language: true (will be evaluated using variable registry only)
This Property is only considered if the [Query Type] Property has a value of "Property Based Query". |
Field Names | field-names | | | Comma-separated list of field names requested from the sObject to be queried. When this field is left empty, all fields are queried. Supports Expression Language: true (will be evaluated using variable registry only)
This Property is only considered if the [Query Type] Property has a value of "Property Based Query". |
Record Writer | record-writer | | Controller Service API: RecordSetWriterFactory Implementations: ScriptedRecordSetWriter ParquetRecordSetWriter RecordSetWriterLookup CSVRecordSetWriter FreeFormTextRecordSetWriter JsonRecordSetWriter AvroRecordSetWriter XMLRecordSetWriter | Service used for writing records returned from the Salesforce REST API
This Property is only considered if the [Query Type] Property has a value of "Property Based Query". |
Age Field | age-field | | | The name of a TIMESTAMP field that will be used to filter records using a bounded time window.The processor will return only those records with a timestamp value newer than the timestamp recorded after the last processor run. Supports Expression Language: true (will be evaluated using variable registry only)
This Property is only considered if the [Query Type] Property has a value of "Property Based Query". |
Initial Age Start Time | initial-age-filter | | | This property specifies the start time that the processor applies when running the first query. Supports Expression Language: true (will be evaluated using variable registry only)
This Property is only considered if all of the following conditions are met:- The [Age Field] Property has a value specified.
- The [Query Type] Property has a value of "Property Based Query".
|
Age Delay | age-delay | | | The ending timestamp of the time window will be adjusted earlier by the amount configured in this property. For example, with a property value of 10 seconds, an ending timestamp of 12:30:45 would be changed to 12:30:35. Supports Expression Language: true (will be evaluated using variable registry only)
This Property is only considered if all of the following conditions are met:- The [Age Field] Property has a value specified.
- The [Query Type] Property has a value of "Property Based Query".
|
Custom WHERE Condition | custom-where-condition | | | A custom expression to be added in the WHERE clause of the query Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
This Property is only considered if the [Query Type] Property has a value of "Property Based Query". |
Read Timeout | read-timeout | 15 s | | Maximum time allowed for reading a response from the Salesforce REST API Supports Expression Language: true (will be evaluated using variable registry only) |
Create Zero Record FlowFiles | create-zero-record-files | false | | Specifies whether or not to create a FlowFile when the Salesforce REST API does not return any records
This Property is only considered if the [Query Type] Property has a value of "Property Based Query". |
OAuth2 Access Token Provider | oauth2-access-token-provider | | Controller Service API: OAuth2AccessTokenProvider Implementation: StandardOauth2AccessTokenProvider | Service providing OAuth2 Access Tokens for authenticating using the HTTP Authorization Header |
Relationships:
Name | Description |
---|
success | For FlowFiles created as a result of a successful query. |
failure | The input flowfile gets sent to this relationship when the query fails. |
original | The input flowfile gets sent to this relationship when the query succeeds. |
Reads Attributes:
None specified.Writes Attributes:
Name | Description |
---|
mime.type | Sets the mime.type attribute to the MIME Type specified by the Record Writer. |
record.count | Sets the number of records in the FlowFile. |
total.record.count | Sets the total number of records in the FlowFile. |
State management:
Scope | Description |
---|
CLUSTER | When 'Age Field' is set, after performing a query the time of execution is stored. Subsequent queries will be augmented with an additional condition so that only records that are newer than the stored execution time (adjusted with the optional value of 'Age Delay') will be retrieved. State is stored across the cluster so that this Processor can be run on Primary Node only and if a new Primary Node is selected, the new node can pick up where the previous node left off, without duplicating the data. |
Restricted:
This component is not restricted.Input requirement:
This component allows an incoming relationship.System Resource Considerations:
None specified.See Also:
PutSalesforceObject