How do i send this set of unique data to Salesforce using Visual Studio 2013 and in C# if that helps. My code and a picture are below. Im kinda of lost. been trying to figure this out for a few hours and ive got a headache. Please help! thanks!
MY QUESTION: How do i Create a user using the Text Boxes Below, a Submit Button, and C# Code? I want to be able to go onto test.salesforce.com, goto Manage Users, and be able to see the user i just created from this program.
Lead sfdcLead = new Lead();
string firstName = txtFirstName.Text;
string lastName = txtLastName.Text;
string email = txtEmail.Text;
string role = lstRole.Text;
string userLicense = lstUserLicense.Text;
string profile = lstProfile.Text;
sfdcLead.FirstName = firstName;
sfdcLead.LastName = lastName;
sfdcLead.Email = email;
SaveResult[] saveResults = Sfdcbinding.create(new sObject[] { sfdcLead });
if (saveResults[0].success)
{
string Id = "";
Id = saveResults[0].id;
}
else
{
string result = "";
result = saveResults[0].errors[0].message;
}