Method Community

 

Edit Customer Field

Last post 02-12-2015 9:21 AM by Method_Alexander. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-11-2015 5:37 PM

    Edit Customer Field

    We are working on API integration for our website and I am trying to find where be able to edit the field ``IsLeadStatusonly`` to false

    Any help would be appreciated 

  • 02-12-2015 9:21 AM In reply to

    Re: Edit Customer Field

    Hello,

    You need to use MethodAPIUpdateV2 to set IsLeadStatusOnly to false where the RecordID matches the lead you want to convert into a customer. Here’s some sample c# code that does this:

                var MAPIsvc = new MethodAPIService.Service();
                string account = txtAccountName.Text;
                string email = txtLoginEmail.Text;
                string pwd = txtLoginPassword.Text;
                string RecordID_To_Update = "446";
                string tablename = "Customer";
                string[ updatefields = "IsLeadStatusOnly".Split(',');
                string[ updatevalues = "false".Split(',');
                txtResponse.Text = MAPIsvc.MethodAPIUpdateV2(account, email, pwd, "", tablename, updatefields, updatevalues,RecordID_To_Update);

Page 1 of 1 (2 items)