I have a postgres database on my heroku instance tied to various salesforce custom objects. Whenever I write true to the isdeleted field in my table everything is fine. However, after it syncs with salesforce the isdeleted is written back as false. Is there some way to set this field?

  • If you're trying to delete a record, you need to delete the record. – sfdcfox Jan 15 '16 at 16:19
  • I was told that wouldn't work and it would just come back when salesforce synced. That was apparently wrong, and this is all I needed to do. – LoneWolfPR Jan 15 '16 at 17:04

IsDeleted field is a system field and we cannot update this field.This field is automatically set when the record is moved to the Recycle Bin (true) or not (false).

You can find more details in below link: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/system_fields.htm

You can try to map your field with a custom field and do your operations with that custom field.

  • while not the true solution the problem that spawned the question, it is the correct answer to the question. Thanks. – LoneWolfPR Jan 15 '16 at 17:04

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.