This function has been added which replicates the QueryAll functionality:
The new ADF/Synapse connector to Salesforce no longer supports QueryAll to query deleted records in Salesforce. How can this be done?
Hi, The previous version of the ADF Salesforce connector (https://learn.microsoft.com/en-us/azure/data-factory/connector-salesforce-legacy?tabs=data-factory) supported querying deleted records in Salesforce:
But the new version (https://learn.microsoft.com/en-us/azure/data-factory/connector-salesforce?tabs=data-factory) does not appear support this option.
Is there a way to queryAll using the new connector, or to continue to use the legacy connector for new linked services. This functionality is crucial to my application. Thanks, Kevin
Azure Synapse Analytics
Azure Data Factory
3 answers
Sort by: Most helpful
-
-
Manish Lagisetty 0 Reputation points
2025-01-16T16:37:58.17+00:00 Microsoft has missed to add drop down in GUI side but we can enable this feature from code wise, In adf after creating pipeline, open as script add this line
, "includeDeletedObjects": Truethen it will pull all deleted data also.
"activities":[
{ "name": "CopyFromSalesforce", "type": "Copy", "inputs": [ { "referenceName": "<Salesforce input dataset name>", "type": "DatasetReference" } ], "outputs": [ { "referenceName": "<output dataset name>", "type": "DatasetReference" } ], "typeProperties": { "source": { "type": "SalesforceV2Source", "query": "SELECT Col_Currency__c, Col_Date__c, Col_Email__c FROM AllDataType__c", **"includeDeletedObjects": True -- Add this code** }, "sink": { "type": "<sink type>" } } }
]
-
Vincenzo Dell'Oste 0 Reputation points
2025-01-30T11:17:27.4833333+00:00 I do still have a problem, the check box is clicked, but deleted records are not downloaded.