Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Account ID
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-12-2012 11:00 AM
Hi all,
I'm trying to create a case by making a soap envelope in Java and send it over HttpURLConnection using UTF-8. I can successfully login, but when I try to create a case the result I receive is:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><createResponse><result><errors><f
The Soap envelope that I'm sending is:
"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:partner.soap.sforce.com\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n" +
" <soapenv:Header>\n" +
" <urn:PackageVersionHeader>\n"+
" </urn:PackageVersionHeader>\n"+
" <urn:MruHeader>\n"+
" <urn:updateMru>0</urn:updateMru>\n"+
" </urn:MruHeader>\n"+
" <urn:QueryOptions>\n"+
" <urn:batchSize>10</urn:batchSize>\n"+
" </urn:QueryOptions>\n"+
" <urn:SessionHeader>\n"+
" <urn:sessionId>"+soapCaller.getSessionId()+"</urn:
" </urn:SessionHeader>\n"+
" </soapenv:Header>\n" +
" <soapenv:Body>\n" +
" <urn:create>\n"+
" <sObjects xsi:type=\"ns3:Case\" xmlns:ns3=\"urn:sobject.enterprise.soap.sforce.com
" <ns3:AccountId>003E000000LNpsb</ns3:AccountId>\n"+
" <ns3:Priority>Medium</ns3:Priority>\n"+
" <ns3:Status>New</ns3:Status>\n"+
" <ns3:Subject>Automatic_Ticket_from_Java</ns3:Subje
" <ns3:Description>description</ns3:Description>\n"+
" <ns3:SuppliedEmail>genedemo@null.net</ns3:Supplied
" </sObjects>\n"+
" </urn:create>\n"+
" </soapenv:Body>\n" +
"</soapenv:Envelope>"
I have done a lot of research, but I'm still not even sure what an AccountId is, so I must be looking in the wrong places. So here are my questions:
- What is an AccountId (I've tried just about everything I can think of)?
- How do I get ahold of one?
- What is it supposed to denote in case creation?
Thanks in advance!
Re: Account ID
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-12-2012 11:40 AM

