2

I was able to fetch Opportunities, Contacts, Accounts from sandbox through SOAP api's but I did not get how to fetch License.

Could anybody please help me out? Thanks.

  • There isn't an object named License as a standard object. Perhaps you meant UserLicense or License__c? – sfdcfox Jan 15 '14 at 12:03
  • lma__License__c for the Salesforce License Management App? – bigassforce Jan 15 '14 at 12:06
  • @sfdcfox & user320 - It's the License we provision for an Opportunity which contains details like deployment option, exp date, java agents, .net agents etc. – Braj Jan 15 '14 at 12:08
  • @Braj You probably really mean License__c. Try checking your Enterprise WSDL (Setup > Develop > API > Enterprise WSDL), and let us know. – sfdcfox Jan 15 '14 at 12:13
  • @sfdcfox - License__c is thr under 'element' in 'complexType' in my Enterprise WSDL and thr r many other complexType names like LicenseDetail__c, License_Agent__c etc. Did u mean these? and when I try to query with any of them, am getting "com.sforce.ws.ConnectionException: Failed to load class: com.sforce.soap.enterprise.sobject.License_Agent__c"... I think I need to generate partner and enterprise jar files for sandbox account... right now i have them for production account. – Braj Jan 15 '14 at 12:27
6

Per the comments on the question, it appears that the solution is that the developer needs to use the Partner WSDL, or generate a new Enterprise WSDL that includes the missing objects for their Sandbox organization.

  • It was matter of generating new jar files for sandbox account... thanks @sfdcfox – Braj Jan 16 '14 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.