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
SiddharthSiddharth 

Restricted Picklist

Hi community,

     I am trying to insert data into the Weblinks in SAlesForce using the create call and API version 6. However at the time of insertion i am returned with the StatusCode INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST and the message as "PageEnumOrId: bad value for restricted picklist field: accountDetail". Can anybody tell me how can i insert the data in the weblinks. Suggestion will be appritiated.

Thanks & Regards

Siddharth

punit.theikospunit.theikos

Hi Siddharth,

In API version 6.0, the values of pickList for PageEnumOrId have changed. The "Detail" is no more there with each entity type.

Try inserting "Account" in weblink table and you should be good. To see the available picklist values go to Salesforce Explorer and change the SforceProvider URL under "Options" menu and then see the picklist values in "weblink" object.

Does anyone know why these values are changed though? It looks like it would make the code incompatible with earlier versions of Sforce API 5.0.

Thanks

Punit