[NIFI-13869] - Enhance QuerySalesforceObject Processor to Support Querying Deleted Records#9434
Closed
Nicolae93 wants to merge 3 commits intoapache:mainfrom
Closed
[NIFI-13869] - Enhance QuerySalesforceObject Processor to Support Querying Deleted Records#9434Nicolae93 wants to merge 3 commits intoapache:mainfrom
Nicolae93 wants to merge 3 commits intoapache:mainfrom
Conversation
…ng Deleted Records - Added a new boolean property `Include Deleted Records` to allow users to include deleted (soft-deleted) records in Salesforce queries. - Modified the query construction to include the `IsDeleted` field and use the `queryAll` API endpoint when `Include Deleted Records` is enabled. - Updated `SalesforceRestClient` to support the `queryAll` API by adding a new `queryAll` method. - Ensured backward compatibility by defaulting `Include Deleted Records` to `false`, maintaining existing behavior unless explicitly enabled. - Updated processor documentation and annotations to reflect the new functionality. - Adjusted state management to reset state when `Include Deleted Records` property is modified.
…ng Deleted Records - Added a new boolean property `Include Deleted Records` to allow users to include deleted (soft-deleted) records in Salesforce queries. - Modified the query construction to include the `IsDeleted` field and use the `queryAll` API endpoint when `Include Deleted Records` is enabled. - Updated `SalesforceRestClient` to support the `queryAll` API by adding a new `queryAll` method. - Ensured backward compatibility by defaulting `Include Deleted Records` to `false`, maintaining existing behavior unless explicitly enabled. - Updated processor documentation and annotations to reflect the new functionality. - Adjusted state management to reset state when `Include Deleted Records` property is modified.
…into origin/NIFI-13869
pvillard31
approved these changes
Oct 22, 2024
Contributor
pvillard31
left a comment
There was a problem hiding this comment.
Thanks for this improvement @Nicolae93 - the changes look good to me. Thanks for putting together a very well explained and described pull request. If you want this to also land in the 1.x branch, you'll need to file a specific PR against the support branch.
Contributor
Author
|
Hi @pvillard31! I'm glad to hear that my first contribution was well-received! I've submitted a PR for the 1.x version against the support branch apache:support/nifi-1.x using the same JIRA issue. Is that ok? |
kravii
pushed a commit
to acceldata-io/nifi
that referenced
this pull request
Sep 3, 2025
…ng Deleted Records - Added a new boolean property `Include Deleted Records` to allow users to include deleted (soft-deleted) records in Salesforce queries. - Modified the query construction to include the `IsDeleted` field and use the `queryAll` API endpoint when `Include Deleted Records` is enabled. - Updated `SalesforceRestClient` to support the `queryAll` API by adding a new `queryAll` method. - Ensured backward compatibility by defaulting `Include Deleted Records` to `false`, maintaining existing behavior unless explicitly enabled. - Updated processor documentation and annotations to reflect the new functionality. - Adjusted state management to reset state when `Include Deleted Records` property is modified. Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes apache#9434. (cherry picked from commit 3521905)
shubhluck
pushed a commit
to acceldata-io/nifi
that referenced
this pull request
Sep 9, 2025
…ng Deleted Records - Added a new boolean property `Include Deleted Records` to allow users to include deleted (soft-deleted) records in Salesforce queries. - Modified the query construction to include the `IsDeleted` field and use the `queryAll` API endpoint when `Include Deleted Records` is enabled. - Updated `SalesforceRestClient` to support the `queryAll` API by adding a new `queryAll` method. - Ensured backward compatibility by defaulting `Include Deleted Records` to `false`, maintaining existing behavior unless explicitly enabled. - Updated processor documentation and annotations to reflect the new functionality. - Adjusted state management to reset state when `Include Deleted Records` property is modified. Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes apache#9434. (cherry picked from commit 3521905)
kravii
pushed a commit
to acceldata-io/nifi
that referenced
this pull request
Dec 15, 2025
…ng Deleted Records - Added a new boolean property `Include Deleted Records` to allow users to include deleted (soft-deleted) records in Salesforce queries. - Modified the query construction to include the `IsDeleted` field and use the `queryAll` API endpoint when `Include Deleted Records` is enabled. - Updated `SalesforceRestClient` to support the `queryAll` API by adding a new `queryAll` method. - Ensured backward compatibility by defaulting `Include Deleted Records` to `false`, maintaining existing behavior unless explicitly enabled. - Updated processor documentation and annotations to reflect the new functionality. - Adjusted state management to reset state when `Include Deleted Records` property is modified. Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes apache#9434. (cherry picked from commit 3521905)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NIFI-13869
Enhance the
QuerySalesforceObjectprocessor to support querying deleted records (soft-deletes) from Salesforce. This enhancement introduces a new boolean propertyInclude Deleted Recordsthat allows users to include deleted records in their queries. When enabled, the processor automatically includes theIsDeletedfield in the SELECT clause and utilizes thequeryAllSalesforce API endpoint to retrieve both active and deleted records. This functionality is essential for scenarios requiring audit trails, compliance tracking, and monitoring record deletions.Key Changes:
New Property Added:
Include Deleted Records(Boolean): Enables the inclusion of deleted records in Salesforce queries.Query Modification:
Include Deleted Recordsis set totrue, theIsDeletedfield is added to the SELECT statement if not already present./queryendpoint to the/queryAllendpoint to fetch both active and deleted records.SalesforceRestClient Updates:
queryAll(String query)to support the/queryAllAPI endpoint.Backward Compatibility:
Include Deleted Recordsisfalse), ensuring existing workflows are not disrupted unless explicitly enabled.State Management:
Include Deleted Recordsproperty, ensuring consistent behavior upon property modifications.Documentation:
Include Deleted Recordsproperty.This enhancement allows users to effectively track and manage deleted records within their Salesforce integrations, aligning with audit and compliance requirements without affecting existing data retrieval processes.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-13869NIFI-13869Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation
Include Deleted RecordsTesting
Code Review