• K_V_R
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 0
    Replies

HI,

   Iam using a simple code in .net for creating a new account in salesforce.com.While iam calling this  method iam getting below error "CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY Error message: entity type cannot be inserted: Account " .

Any suggestions.

  • April 19, 2010
  • Like
  • 0

Hi Friends,

I am developing a simple asp.net application which is pointing to salesforce sanbox and i am using enterprise wsdl downloaded from  sandbox environment.If i want to change this url pointing to production.

 

 By changing address location in sandbox enterprisewsdl and key value in web.config is sufficient 

 

 

1) In enterprise.wsdl change  <soap:address location="https://test.salesforce.com/services/Soap/c/17.0" />

to  <soap:address location="https://www.salesforce.com/services/Soap/c/17.0" />

 

2)In web.config >> <add key="SalesForce.enterprise" value="https://test.salesforce.com/services/Soap/c/17.0"/> to

<add key="SalesForce.enterprise" value="https://www.salesforce.com/services/Soap/c/17.0"/> 

 

Or I need to download a seperate wsdl from production.Please suggest me.

  • March 16, 2010
  • Like
  • 0

Hi All,

     I am using below code to create account through api.But Iam getting this error

"The type or namespace name 'Account' could not be found (are you missing a using directive or an assembly reference?)"

 

Below is my sample code In this app iam sucessfully login and and execute query also.

 

 

 

   public void CreateAccountSample()

    {

             

        Account account1 = new Account();

        Account account2 = new Account();

 

        // Set some fields on the account1 object. Name field is not set  

 

        // so this record should fail as it is a required field.  

 

        account1.BillingCity = "Wichita";

        account1.BillingCountry = "US";

        account1.BillingState = "KA";

        account1.BillingStreet = "4322 Haystack Boulevard";

        account1.BillingPostalCode = "87901";

 

        // Set some fields on the account2 object  

 

        account2.Name = "Golden Straw";

        account2.BillingCity = "Oakland";

        account2.BillingCountry = "US";

        account2.BillingState = "CA";

        account2.BillingStreet = "666 Raiders Boulevard";

        account2.BillingPostalCode = "97502";

 

        // Create an array of SObjects to hold the accounts  

 

        sObject[] accounts = new sObject[2];

        // Add the accounts to the SObject array  

 

        accounts[0] = account1;

        accounts[1] = account2;

 

        // Invoke the create() call  

 

        try

        {

            SaveResult[] saveResults = binding.create(accounts); 

 

 

 

  • February 17, 2010
  • Like
  • 0

Hi Friends,

     I am a beginner to salesforcecrm.Iam created Developer Edition Account .And i am able to login to api and able to see contacts using by partnerwsdl .

  But my problem is How can i create A New Account Through Api.Please Any one provide sample code or any suggestion.  

  • February 17, 2010
  • Like
  • 0