You need to sign in to do that
Don't have an account?
Ben Smith WF
INVALID_TYPE: sObject type is not supported
Query Managed package object via soap API
We are not able to querry a managed package object via SOAP API. We worked with the package developer and they are also not sure why we can't view the object.
This is in a full sandbox (same error from production). The license structure for the package is a site license. The Dev says API is enabled. We have updated the Enterprise WSDL several times. The integration user has full access to the object.
Query is
Select id,lastmodifieddate,lastmodifiedbyid from bt_stripe__Transaction__c where lastmodifieddate >=2020-03-04T17:59:02.4000000Z and lastmodifieddate <=2020-03-04T20:46:03.6240464Z and lastmodifiedbyid not in('00560000000mcu7','00560000001mZL0','00560000001SlagAAC')
The error is
{"INVALID_TYPE: sObject type 'bt_stripe__Transaction__c' 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."}
From the developer work bench the same query can be run and results are returned.
Any thoughts or directions?
Thanks in advance!
Ben Smith
We are not able to querry a managed package object via SOAP API. We worked with the package developer and they are also not sure why we can't view the object.
This is in a full sandbox (same error from production). The license structure for the package is a site license. The Dev says API is enabled. We have updated the Enterprise WSDL several times. The integration user has full access to the object.
Query is
Select id,lastmodifieddate,lastmodifiedbyid from bt_stripe__Transaction__c where lastmodifieddate >=2020-03-04T17:59:02.4000000Z and lastmodifieddate <=2020-03-04T20:46:03.6240464Z and lastmodifiedbyid not in('00560000000mcu7','00560000001mZL0','00560000001SlagAAC')
The error is
{"INVALID_TYPE: sObject type 'bt_stripe__Transaction__c' 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."}
From the developer work bench the same query can be run and results are returned.
Any thoughts or directions?
Thanks in advance!
Ben Smith
You might need to use 'Database.query' in your logic.
Snippet:
List<sObject> sobjList = Database.query('Select id,lastmodifieddate,lastmodifiedbyid from bt_stripe__Transaction__c where lastmodifieddate >=2020-03-04T17:59:02.4000000Z and lastmodifieddate <=2020-03-04T20:46:03.6240464Z and lastmodifiedbyid not in('00560000000mcu7','00560000001mZL0','00560000001SlagAAC')
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar