I am trying to build a connector which leverages WSC. However, I see we need to generate enterprise.jar for each client's salesforce. That way i will not be able to use the same connector which has enterprise.jar dependency generated using enterprise.wsdl.xml for other organization.
I want to build 1 connector which can pull data from multiple organization without needing to manually generate enterprise jar dependancy for every client.
I can explore REST API ways, but then i will need to build everything from scratch. Please let me know if there is a available way.
I'm executing this query from Java code using REST service:
SELECT Id, Name, StageName, Amount FROM Opportunity WHERE AccountId = 'xyz' AND OwnerId = 'abc'
I have System Administrator role, View All permission, Object level full permission on Opportunity object, all field level permissions on Opportunity fields.
Still i'm getting this error:
sObject type 'Opportunity' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.","errorCode":"INVALID_TYPE"
can you please suggest what i'm missing