1

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?

2
  • If you're trying to delete a record, you need to delete the record.
    – sfdcfox
    Jan 15, 2016 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, 2016 at 17:04

1 Answer 1

2

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .