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
jnegijnegi 

code for partner api to insert rows into salesforce

Hi All

I am using partner api to insert rows into salesforce. Can anyone provide the sample code for this.

 

Thanks in advance !

sh-at-youseesh-at-yousee

Hi,

 

I'm not sure if you're using the Web Service API or simply want to insert rows using Apex. If you're just looking for a way to insert rows using Apex here's an example:

 

 

Account a = new Account();
insert a;

 

 

However, a great starting point for you would be one of the two:

 

  1. http://www.salesforce.com/us/developer/docs/api/index.htm - take a look at Reference --> Core Calls
  2. http://www.salesforce.com/us/developer/docs/apexcode/index.htm - take a look at Reference --> Apex Data Manipulation Language (DML) Operations

The first document describes the web service interface and the second the Apex language.

 

Hope it helps.

 

/Søren Nødskov Hansen