locked
plugin message when converting quote to order. RRS feed

  • Question

  • Hi,

    Can anyone tell me what message should be used when quote is converted to order.

    I tried using Win message on quote(at pre and post) but the plugin didnt fire.


    Thanks Vineet

    Tuesday, September 22, 2015 5:43 AM

Answers

All replies

  • Hello,

    Have you tried SetState/SetStateDynamicEntity?


    Dynamics CRM MVP
    My blog

    Tuesday, September 22, 2015 7:35 AM
    Moderator
  • Hi Vineet,

    The other option you have for this is to have a plugin which is registered to Pre/Post Operation of Order Create.

    this plug in will fire when order is created and then you can check if quote is present as shown in pseudo code below..

    Entity target = (Entity)context.InputParameters["Target"];
    if (target.Contains("quoteid") && 
        target["quoteid"] != null)
    {
        return;
    }
    else
    {
        //plugin code
        //use quote id and perform necesssary code
    }
    

    Hope this helps..


    MayankP
    My Blog
    Follow Me on Twitter

    Monday, September 28, 2015 11:46 AM
    Answerer