You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Dan Ladd (JIRA)" <ji...@apache.org> on 2019/07/17 21:26:00 UTC
[jira] [Created] (AIRFLOW-4984) Improve SalesforceHook to Query
Deleted Records
Dan Ladd created AIRFLOW-4984:
---------------------------------
Summary: Improve SalesforceHook to Query Deleted Records
Key: AIRFLOW-4984
URL: https://issues.apache.org/jira/browse/AIRFLOW-4984
Project: Apache Airflow
Issue Type: New Feature
Components: hooks
Affects Versions: 1.10.3
Reporter: Dan Ladd
Assignee: Dan Ladd
The current salesforce_hook does not allow you to query deleted records. This feature is already enabled in simple-salesforce, which the salesforce_hook implements.
From [https://simple-salesforce.readthedocs.io/en/latest/simple_salesforce.api.html]:
{{query_all}}(_query_, _include_deleted=False_, _**kwargs_)
Returns the full set of results for the ??query??. This is a convenience wrapper around ??query(...)?? and ??query_more(...)??.
The returned dict is the decoded JSON payload from the final call to Salesforce, but with the ??totalSize?? field representing the full number of results retrieved and the ??records?? list representing the full list of records retrieved.
Arguments
* query - the SOQL query to send to Salesforce, e.g.SELECT Id FROM Lead WHERE Email = "[waldo@somewhere.com|mailto:waldo%40somewhere.com]"
* include_deleted - True if the query should include deleted records.
Going to include the keyword argument *include_deleted=False* in the salesforce_hook *make_query* method.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)