title: CRM 2011 - Display all entities in option set
body: <p>I just started working with Dynamics CRM 2011 and need to do some tasks but I simply don't know how. Really hope you can help me with this.</p>
  
  <p>I need to set the values for a picklist(option set) through code behind, it should display all published entities in the solution everytime the form of my custom entity is loaded.
  I've searched the web and all I found was the next piece of code, but I absolutely have no idea what to do with is (yeah, I'm newbie, didn't you notice):</p>
  
  <pre><code>RetrieveAllEntitiesRequest req = new RetrieveAllEntitiesRequest();
  req.EntityFilters = EntityFilters.Privileges;
  req.RetrieveAsIfPublished = true;
  RetrieveAllEntitiesResponse resp = (RetrieveAllEntitiesResponse)service.Execute(req);
  </code></pre>
  
  <p>I tried to do the same with some JScript samples I found on the SDK but I still couldn't manage to insert the values into the picklist. Please give a hint or something. Thanks.</p>