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
mmixmmix 

Updating non-redundant factory field in Personal Account's contact?

I have a problem.

 

There are two fields in the Contact sobject which control the SF logic for email bounces (EmailBouncedDate, EmailBouncedReason). My client essentially uses SF web services API from inhouse invoice emailing system to mark those email addresses that bounced back for whatever reason thus bringing this to the attention of CSR's. 

 

The problem is that I cannot reset these fields back to null from apex if its personal account. I have a form which CSR's use to clean up customer account information and as part of account update I also set these fields on asssociated contact, but it throws an error, making me unable to manually remove the bounce flag.

 

For some reason SF disallows DML operation on contact entity if its tied to a personal account (probably to protect the bizare redundancy between person/contact objects) but this leaves me wondering how I can change those contact fields which are not redundant, like the two above?