I have executed this query directly from salesforce developer console
SELECT QualifiedApiName, Label FROM EntityDefinition where QualifiedApiName = 'Coupon'
And it returns data , but when i execute same query from my code it returns empty result
i have tried all these api clients
- SfdcRestApi
- SfdcMetadataApi
- SfdcSoapApi
- SfdcToolingApi
i get data in case of SfdcMetadataApi only but it does not return the label
I am using the same user in both cases