[SalesForce] Failed: InvalidBatch : Failed to process query: FUNCTIONALITY_NOT_ENABLED: Foreign Key Relationships not supported in Bulk Query

I am getting below error on running bulk query.Is there any way i can get result in bulk query.

Failed: InvalidBatch : Failed to process query:
FUNCTIONALITY_NOT_ENABLED: Foreign Key Relationships not supported in
Bulk Query

I have used below bulk query in workbench.

SELECT Product__c,product__r.description FROM Sales_Quota__c

Best Answer

I think your best bet is just to define a field on the Sales_Quota__c Object called Product_Description__c, which would be a formula equal to product__r.description. Then use this in your query.

SELECT Product__c,Product_Description__c FROM Sales_Quota__c
Related Topic