• somen
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi all,
 
I am very new to salesforce, so this question might seem silly to a few.
 
i have a code that inserts  400 contacts into the Contact  table.
 
for(i=0;i<400;i++)
{
  var contact = new Sforce.Dynabean("Contact");
  contact.set("LastName","Gates"); 
  contact.set("Description","test contact number ");
  var saveResult = contact.save(); 
 }
 
now i ran a query to fetch all the contacts from the Contact table.
 
var queryResult= sforceClient.query("Select Id from Contact")
 
after fetching,
alert(queryResult)      returned 487 records as size.
 
but alert(queryResult.size) and alert(queryResult.records.length)    returned only 200.
 
can anybody explain the difference in the numbers?
 
Also when i transferred all the contacts into the CampaignMember table after assigning all of them to a campaign, the total number of contacts transferred was only 200.
 
Can someone tell me where i am going wrong?
 
 
Thanks in advance.
 
 
  • August 08, 2006
  • Like
  • 0
Hi all,
 
I am very new to salesforce, so this question might seem silly to a few.
 
i have a code that inserts  400 contacts into the Contact  table.
 
for(i=0;i<400;i++)
{
  var contact = new Sforce.Dynabean("Contact");
  contact.set("LastName","Gates"); 
  contact.set("Description","test contact number ");
  var saveResult = contact.save(); 
 }
 
now i ran a query to fetch all the contacts from the Contact table.
 
var queryResult= sforceClient.query("Select Id from Contact")
 
after fetching,
alert(queryResult)      returned 487 records as size.
 
but alert(queryResult.size) and alert(queryResult.records.length)    returned only 200.
 
can anybody explain the difference in the numbers?
 
Also when i transferred all the contacts into the CampaignMember table after assigning all of them to a campaign, the total number of contacts transferred was only 200.
 
Can someone tell me where i am going wrong?
 
 
Thanks in advance.
 
 
  • August 08, 2006
  • Like
  • 0