Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-13869

Enhance QuerySalesforceObject Processor to Support Querying Deleted Records

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.25.0
    • 2.0.0, 1.29.0
    • Extensions
    • None

    Description

      Currently, the QuerySalesforceObject processor in NiFi is capable of querying active records from Salesforce. However, it lacks the functionality to retrieve deleted records, which is critical for scenarios where we need to track changes or removals of records, especially for audit and compliance purposes. This improvement will add support for querying deleted records (soft deletes in Salesforce), leveraging the isDeleted field in Salesforce's SOQL queries.

      Requirements:

      1. New Processor Property:
        • Add a Boolean property: Include Deleted Records.
        • When set to true, the processor should include records where the isDeleted field is true.
      1. SOQL Query Modification:
        • Modify the query structure to include the isDeleted field in the WHERE clause when querying the object. For example:
          • SELECT Id, Name, IsDeleted FROM ContentVersion WHERE IsDeleted = true.
      1. Backward Compatibility:
        • Ensure backward compatibility by keeping the default behavior of excluding deleted records unless the new property is enabled.

      Acceptance Criteria:

      • Users should be able to enable or disable the querying of deleted records via a new processor property.
      • The processor should return both deleted and non-deleted records when appropriate.

      Attachments

        Activity

          People

            nicolae93 Nicolae Puica
            nicolae93 Nicolae Puica
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h