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
dinesh Devaraj 7dinesh Devaraj 7 

How can i solve field is not writeable

User-added imagewhen i want to fetch the data from apex to salesforce iam unable to do these formula fields how can achieve this
Ajay K DubediAjay K Dubedi
Hi Dinesh,

Two main problems exist here.

First, your org wide defaults are already full-open. You can't access SObjects fields when they're set this way, because the system won't save them. Either don't create any SObjects records, or reduce your access levels.

Second, if you decide to reduce your access levels so you can create SObjects records, be advised that the legal values for the Access fields are "None", "Read", "Edit", and "All." You can't use the values that are displayed in the UI.


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi