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
dragan loncardragan loncar 

unable to update field-please help

Hi  
I wanted  to update  field membership status in  object  contact   using this       contact.Membership_Status__c = "Approved";
when i open  object contact i can see  field membership Status has formula:
text( Latest_Membership__r.Membership_Status__c )
I am gettinh error 
The error returned was Unable to create/update fields: Membership_Status__c. Please check the security settings of this field and verify that it is read/write for your profile or permission set. 
​The  fields without formula i can update 
Please help 
 
Z man0Z man0

To my knowledge you cannot update a formula field. 

As per your formula, this formula field is calculated based on a field named "Membership_status__c" from "Latest_Membership__c" object. Try updating this field. This will automatically recalcualte the Membership_Status__c on contact object!