locked
Plgin code RRS feed

  • Question

  • Hi  

    the lead status Qualified just has one option in the drop down list i.e Qualified

    hence my below code 
    if (((OptionSetValue)(context.InputParameters["Status"])).Value  == 3)
    dont work 

    Any help on this much appreciated

    Thanks


    Pradnya07

    Friday, June 13, 2014 9:09 AM

Answers

  • i added two values in my drop down list instead of one and then it worked

    Pradnya07

    • Marked as answer by Simran08 Monday, June 16, 2014 9:34 AM
    Monday, June 16, 2014 9:34 AM

All replies

  • Hello,

    Please check below optionset values for status and statusreason, if you want to check to status you should compare it with 1 intead of 3.

    Status Status  Reason

    0:Open 1:New
    2:Contacted
    1:Qualified 3:Qualified
    2:Disqualified 4:Lost
    5:Cannot Contact
    6:No Longer Interested
    7:Canceled

    Our Website| Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Friday, June 13, 2014 9:23 AM
    Moderator
  • still not working 


     if (((OptionSetValue)(context.InputParameters["Status"])).Value  == 1)

    {                context.InputParameters["CreateOpportunity"] = false; // set to true by default
                    context.InputParameters["CreateAccount"] = false; // set to true by default


                }

    it still open the application form when lead gets qualified

    thanks




    Pradnya07


    • Edited by Simran08 Friday, June 13, 2014 9:39 AM
    Friday, June 13, 2014 9:31 AM
  • HI,

    Try with "statuscode" instead of "Status".


    Admin QuikView Solution for CRM 2013

    Friday, June 13, 2014 10:10 AM
  • no it didnt work

    Pradnya07

    Friday, June 13, 2014 10:20 AM
  • hi 

    in the below image the Qualify is not a drop down (option set )is that the reason the code dont work ?


    Pradnya07

    Friday, June 13, 2014 10:41 AM
  • i added two values in my drop down list instead of one and then it worked

    Pradnya07

    • Marked as answer by Simran08 Monday, June 16, 2014 9:34 AM
    Monday, June 16, 2014 9:34 AM