soap - Integrating with other organization's SalesForce accounts -
i need add data, lead, organization's salesforce account. need use soap api external .net web application.
in prototypes have enterprise wsdl in visual studio project , can add lead organization's salesforce account, authenticating email address , password/security token combination.
however, need insert lead organization's salesforce account. configuration (email, password, token etc) stored in external .net application, part struggling understand is:
i have enterprise wsdl typed organization's salesforce account, cannot use make calls on organization's salesforce data, if have credentials, correct?
this how adding lead our salesforce account
private sforceservice binding; binding = new sforceservice(); binding.timeout = 10000; loginresult lr = null; bool success = true; try { lr = binding.login("myemailaddress", "mypasswordandtoken"); } catch (exception ex) { success = false; } if(success) { // snip, newlead created here. saveresult[] sr = binding.create(new sobject[] { newlead }); }
Comments
Post a Comment