You need to sign in to do that
Don't have an account?
Ron McCrerey
How do I form a SOQL query for the child of Product2 whose parent is a Product2?
How do I form a SOQL query for the child of Product2 whose parent is a Product2?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
You need to use the child relationship name instead of 'Products__r'. When you created Master detail to Product on Product, you should have provided a child relationship name, use that.
If still you face some issue, you can share your salesforce org login credentials and I will help you out. You can contact me either on my gmail id: neetu.bansal.5@gmail.com or Skype id: neetu.bansal.5
Thanks,
Neetu
All Answers
Try using this query: Here in the inner query 'Products' is the child relationship name which I provided while creating relationship. Replace it with your child relationship name.
Let me know if you need any other help.
Thanks,
Neetu
Select Product2.Total_Cost__c, (Select Product2.Total_cost__c from Products__r) from Prouduct2 where Product2.Status__c = 'Available'
Get the following error
Didn't understand relationship 'Products__r' in FROM part of query call.
You need to use the child relationship name instead of 'Products__r'. When you created Master detail to Product on Product, you should have provided a child relationship name, use that.
If still you face some issue, you can share your salesforce org login credentials and I will help you out. You can contact me either on my gmail id: neetu.bansal.5@gmail.com or Skype id: neetu.bansal.5
Thanks,
Neetu