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.

5
  • There isn't an object named License as a standard object. Perhaps you meant UserLicense or License__c?
    – sfdcfox
    Commented Jan 15, 2014 at 12:03
  • lma__License__c for the Salesforce License Management App? Commented Jan 15, 2014 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
    Commented Jan 15, 2014 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
    Commented Jan 15, 2014 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
    Commented Jan 15, 2014 at 12:27

1 Answer 1

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .