Skip to content

Commit 6c8b0ca

Browse files
committed
add includeDeletedObjects
1 parent 0847b26 commit 6c8b0ca

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

articles/data-factory/connector-salesforce-service-cloud.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ To copy data from Salesforce Service Cloud, set the source type in the copy acti
205205
|:--- |:--- |:--- |
206206
| type | The type property of the copy activity source must be set to **SalesforceServiceCloudV2Source**. | Yes |
207207
| SOQLQuery | Use the custom query to read data. You can only use [Salesforce Object Query Language (SOQL)](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm) query with [limitations](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations). If query is not specified, all the data of the Salesforce object specified in "ObjectApiName/reportId" in dataset will be retrieved. | No (if "ObjectApiName/reportId" in the dataset is specified) |
208+
| includeDeletedObjects | Indicates whether to query the existing records, or query all records including the deleted ones. If not specified, the default behavior is false. <br>Allowed values: **false** (default), **true**. | No |
208209

209210
> [!IMPORTANT]
210211
> The "__c" part of **API Name** is needed for any custom object.
@@ -233,7 +234,8 @@ To copy data from Salesforce Service Cloud, set the source type in the copy acti
233234
"typeProperties": {
234235
"source": {
235236
"type": "SalesforceServiceCloudV2Source",
236-
"SOQLQuery": "SELECT Col_Currency__c, Col_Date__c, Col_Email__c FROM AllDataType__c"
237+
"SOQLQuery": "SELECT Col_Currency__c, Col_Date__c, Col_Email__c FROM AllDataType__c",
238+
"includeDeletedObjects": false
237239
},
238240
"sink": {
239241
"type": "<sink type>"
@@ -334,5 +336,7 @@ Migrating your Salesforce Service Cloud linked service is highly recommended if
334336

335337
1. If you use SQL query in the copy activity source or the lookup activity that refers to the legacy linked service, you need to convert them to the SOQL query. Learn more about SOQL query from [Salesforce Service Cloud as a source type](connector-salesforce-service-cloud.md#salesforce-service-cloud-as-a-source-type) and [Salesforce Object Query Language (SOQL)](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm).
336338

339+
1. readBehavior is replaced with includeDeletedObjects in the copy activity source or the lookup activity. For the detailed configuration, see [Salesforce as a source type](connector-salesforce.md#salesforce-as-a-source-type).
340+
337341
## Related content
338342
For a list of data stores supported as sources and sinks by the copy activity, see [Supported data stores](copy-activity-overview.md#supported-data-stores-and-formats).

articles/data-factory/connector-salesforce.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ To copy data from Salesforce, set the source type in the copy activity to **Sale
250250
|:--- |:--- |:--- |
251251
| type | The type property of the copy activity source must be set to **SalesforceV2Source**. | Yes |
252252
| SOQLQuery | Use the custom query to read data. You can only use [Salesforce Object Query Language (SOQL)](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm) query with [limitations](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations). If query is not specified, all the data of the Salesforce object specified in "ObjectApiName/reportId" in dataset will be retrieved. | No (if "ObjectApiName/reportId" in the dataset is specified) |
253+
| includeDeletedObjects | Indicates whether to query the existing records, or query all records including the deleted ones. If not specified, the default behavior is false. <br>Allowed values: **false** (default), **true**. | No |
253254

254255
> [!IMPORTANT]
255256
> The "__c" part of **API Name** is needed for any custom object.
@@ -278,7 +279,8 @@ To copy data from Salesforce, set the source type in the copy activity to **Sale
278279
"typeProperties": {
279280
"source": {
280281
"type": "SalesforceV2Source",
281-
"SOQLQuery": "SELECT Col_Currency__c, Col_Date__c, Col_Email__c FROM AllDataType__c"
282+
"SOQLQuery": "SELECT Col_Currency__c, Col_Date__c, Col_Email__c FROM AllDataType__c",
283+
"includeDeletedObjects": false
282284
},
283285
"sink": {
284286
"type": "<sink type>"
@@ -379,5 +381,7 @@ Migrating your Salesforce linked service is highly recommended if you use the le
379381

380382
1. If you use SQL query in the copy activity source or the lookup activity that refers to the legacy linked service, you need to convert them to the SOQL query. Learn more about SOQL query from [Salesforce as a source type](connector-salesforce.md#salesforce-as-a-source-type) and [Salesforce Object Query Language (SOQL)](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm).
381383

384+
1. readBehavior is replaced with includeDeletedObjects in the copy activity source or the lookup activity. For the detailed configuration, see [Salesforce as a source type](connector-salesforce.md#salesforce-as-a-source-type).
385+
382386
## Related content
383387
For a list of data stores supported as sources and sinks by the copy activity, see [Supported data stores](copy-activity-overview.md#supported-data-stores-and-formats).

0 commit comments

Comments
 (0)