function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
reputationdemonreputationdemon 

getdeleted - API setup question

Hi,

 

I am trying to use the API to get deleted tasks.

 

I initiate the request :-

 

<?xml version="1.0" encoding="UTF-8"?>

<jobInfo xmlns="http://www.force.com/2009/06/asyncapi/dataload">

<operation>getDeleted</operation>

<contentType>XML</contentType>

</jobInfo>

 

And then try to create a request :-

 

<?xml version=\"1.0\" encoding=\"utf-8\"?>

<sObjects xmlns=\"http://www.force.com/2009/06/asyncapi/dataload\">

<sObjectType>Task</sObjectType>

<startDate>2011-12-31 00:00:00</startDate>

<endDate>2012-01-04 00:00:00</endDate>

</sObjects>

 

but it seems 'getDeleted' nor 'getdeleted' works. I have tried different combinations of post I have found in the forum without luck. :-(. I am not sure if I need the asyncapi/dataload to get deleted tasks?

 

Can someone direct me in the right direction?

 

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
reputationdemonreputationdemon

Thanks Simon.

 

Let me give that a go.

All Answers

SuperfellSuperfell

I don't beleive getDeleted is supported in the bulk API, you'll need to use the SOAP API.

reputationdemonreputationdemon

Thanks Simon.

 

Let me give that a go.

This was selected as the best answer