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
Rafi Hoq 4Rafi Hoq 4 

How do I write to just the contact's MailingPostalCode field via rest API?

I'm sending the request from Twilio, and all of the other fields work other than MailingPostalCode. Any ideas?

       let contact= {
                           FirstName: event.FirstName,
                            LastName: event.LastName,
                            MailingPostalCode: event.ZipCode,
                            npe01__HomeEmail__c: event.Email,
                            npe01__Preferred_Email__c: 'Personal',
                        };
Rafi Hoq 4Rafi Hoq 4
I also noticed that i'm able to write to the OtherPostalCode field, but not MailingPostalCode. Manually, Im also not able to put in just the zip code for the primary address. There seems to be some kind of required field in the address field as a validation?