Add options to PickList via Web Service in 4.0

Posted on 2009-02-13
Last Modified: 2012-05-06
I want to use a Picklist instead of a Lookup for a couple of fields in the CRM.  Also, I would like my program to automatically add new options to the picklist as they are created by the web developer.  I can't find anything about adding new options to a picklist via the SDK.  Does anyone know how to do this?

Question by:John_IT
    LVL 10

    Expert Comment

    I haven't done this personally, but there are some excellent examples of how to extend CRM and tap into the metadata portion of the SDK in a book:

    We use the book internally quite a bit.  There is at least one example that talks about copying a picklist from one entity to another.  Seems to me that the same code could probably be used to add new items to an existing picklist.

    Accepted Solution

    Thanks for heads up about the book, I'll look into it.

    After picking up hints here and there, I finally spent a couple of hours going through the SDK, and found the InsertOptionValue Message (MetadataService), which looks like just what I need.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Suggested Solutions

    This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
    Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now