1

I want to delete bulk records from a custom object.

i am reffering below url: https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_code_curl_walkthrough.htm

and my batch is

Account obj = new Account(id="0012800000XRdPgAAL");
delete obj;

InvalidBatch : Failed to process query: MALFORMED_QUERY: unexpected token: Account

Can any one please help me , how can i delete multiple records from a custom object using API.

  • 2
    can you give some more info? The link you are referencing is using curl to create bulk jobs while you seem to be writing apex code... – Nielsm Apr 12 '16 at 8:59
  • Try replacing "" (double quotes) with Single quotes ' ' @sfdcweb – Rv1 Apr 12 '16 at 9:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.