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
CP_PDCP_PD 

Metadata API / Picklist problem

I don't know, if my problem is using/understanding the metadata api or adding a value to a picklist.

 

I'm using the same example (apparently like everybody else on this planet):

http://boards.developerforce.com/t5/NET-Development/Adding-a-new-value-to-a-picklist-field-90-there/td-p/108579

 

and when I reach:

 

while (!result.done) {
System.Threading.Thread.Sleep(result.secondsToWait * 1000);
result = checkStatus(new string[] { result.id })[0];
}

It loops infinitely (done will never be true).

 

Are there someone out there, who has another c# code example of adding a value to e picklist

(through metadata api)