Set quote states by code RRS feed

  • Question

  • Hi

    I use a code like this to save quotes programatically in my web service :

    Entity qoute = new Entity("quote");

    qoute["name"] = quotation.Name;

    qoute["customerid"] = new EntityReference(....) ;

    qoute["ownerid"] = new EntityReference("systemuser",....);

     var qouteId = serviceProxy.Create(qoute);

    After saving the quote, according to a field which user sends through web service, I want to change the quote status to one of these types:

    1. Set it as won and also fill fields we can see in the following image

    2. Set it as closed and fill the fields you can see in the following image:

    in this state, I want  "Do not revise this quote" marked and set status reason to "Closed"

    But I dont know how I can do this with code. I also read something about WinQuoteRequest  but cant find it although I have CRM entities code in my project.

    Would you help me please ?

    Saturday, February 1, 2014 3:03 PM

All replies