function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
najumuddin inajumuddin i 

Error while using Salesforce SOAP api in C#.Net

Hi,

I am trying to create a new lead or account from my dotnet application using SOAP api, succeed in login in to force.com using api, but while calling create method i am getting this error : "No overload for method 'create' takes 1 arguments". Here create method expecting morethan 7 parameters but in all developer guides and tutorials i have seen like below, they are not passing all parameters. tried with null arguments alo but same issue.

SFDC_Enterprise.SaveResult[] results = sfdcBinding.create(new SFDC_Enterprise.sObject[] { sfdcLead });

plzz help me out.


Thanks,
Najumuddin.
IPFramptonIPFrampton
Hi there,

If you change your code to be like the below:

SFDC_Enterprise.SaveResult results = sfdcBinding.create(new SFDC_Enterprise.sObject[] { sfdcLead })[0];

Ian