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
Griffin WarburtGriffin Warburt 

Picklist - OpportunityStage - API Updatable?

I'm looking at updating the OpportunityStage and found this in the Developers Guide:

These objects are read-only via the API. To modify items in picklists, you must use the Salesforce user interface.

Is it impossible to update the value in this field via API, and why?

Thanks!

SuperfellSuperfell
Are you asking about changing the list of available stages, or are you asking being able to change the stage on a particular opportunity ?
Griffin WarburtGriffin Warburt

Being able to change the stage on a particular opportunity.  As a pre-emptive follow-up, are there any fields (aside from the create date, modify date, created by user id) fields that are not updatable?  (not changing the metadata of the fields, but the values)

Thanks!

SuperfellSuperfell
Then, yes, that should be changeable via the API, the note in the doc is refering to the changing the list of available picklist values.

The describeSObject call (and the various schema tools built on top of it) will tell you which fields are valid for insert or create calls.