CRM 2013 create the record in Lead entity RRS feed

  • Question

  • Hi All,

    I just want create the new records in lead entity while clicking the button in asp.net

       protected void butLead_Click(object sender, EventArgs e)
                Entity newlead = new Entity("lead");
               // Entity newContact = new Entity("contact");
                newlead["firstname"] = "John";
                newlead["lastname"] = "Smith";

    but while clicking the i am getting  followi

    ng error message

    object reference not set to an instance of an object
    Pls suggest me


    Monday, August 25, 2014 4:17 AM

All replies

  • http://social.microsoft.com/Forums/en-US/0f7ad093-7133-455e-8319-16ae6f8f82e5/crm-40-object-reference-not-set-to-an-instance-of-an-object-when-publishing-andor-deleting?forum=crmdevelopment



    check it.

    ms crm

    Monday, August 25, 2014 6:09 AM