• rayman
  • NEWBIE
  • 0 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
My code is:

createArr is type sforce.sObject[]

foreach (DataRow dataRow in pricesTable.Rows)
{
OI= new SFDC.sforce.OpportunityLineItem();
OI.CreatedById = Request.QueryString["SFUserID"];
OI.Description= dataRow["Descr"].ToString();
OI.LastModifiedById = Request.QueryString["SFUserID"];
OI.OpportunityId = Request.QueryString["OppID"];
OI.PricebookEntryId = "01u30000000DVjZ"; //constant?
OI.ProductId = dataRow["SFDC_PartID"].ToString();//SFDC product ID
OI.Quantity = Convert.ToDouble(dataRow["Quantity"]); //ezquote quantity
OI.QuantitySpecified=true;
OI.TotalPrice = Convert.ToDouble(dataRow["TotalPrice"]); //ezquote price
OI.TotalPriceSpecified = true;
createArr[k++] = OI;
}
//create
sforce.SaveResult[] sr2 = binding.create(createArr);

Any ideas? I can supply some values if needed...is there an easy way to print them out?
Thanks!

We have the situation that accessing SalesForce using webservices returns 18 char object IDs while using some of the other tools, eg. "Weekly Export Service", return 15 char IDs. What is the correct way in Java code to check if a 15 char ID refers to the same object as the 18 char ID? Is it simply a string prefix match or do we need to use some more complicated logic?

  • June 01, 2004
  • Like
  • 0