• gax
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi Guys,
I'm brand new to the salesforce web services APIs and am trying to feel my way around in Java.

What I'd like to do, is create a contact, create and account for that contact, add the contact to the account, then create and Opporunity and add the account to the Opportunity.

I'm stuck on the Account object's setContacts(QueryResult) method.
So I have to issue a query that returns the correct set of contacts that I want to be in this account then set this QueryResult into the account via setContacts()? 
Is there no way to just add a new contact to an accont from the WSDL side?

sorry if I'm missing something obvious.

Thanks!
-John

  • December 17, 2007
  • Like
  • 0