Hi CharuDutt, I got Error like Variable does not exist: CaseId Variable does not exist: Orders
Total_Orders__c ,(Select id,name from Orders) from Case where Id in : ^ ERROR at Row:1:Column:49 Didn't understand relationship 'Orders' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
Hi Ankaiah, I created trigger as per you suggested but still Order count on not updated in Number_of_Orders__c field can you please guide me on this. Thank You
Try Below Trigger Please Mark It As Best Answer If It Helps
Thank You!
I got Error like
Variable does not exist: CaseId
Variable does not exist: Orders
Total_Orders__c ,(Select id,name from Orders) from Case where Id in :
^
ERROR at Row:1:Column:49
Didn't understand relationship 'Orders' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
can you please guide me on this
Thanks
Change CaseId With Case lookup fieldName On Order Object If Case Lookup Is Not On Order Then Make one
Please Mark It As Best Answer If It Helps
Thank You!
Hi CharuDutt,
I have created a custom lookup field CaseId__c on Order Object still I got this error
Please try with below code. If this helps, Please mark it as best answer.
Regards,
Ankaiah
Hi Ankaiah,
Thank You so much for your efforts and Solutions
Hi Ankaiah,
I created trigger as per you suggested but still Order count on not updated in Number_of_Orders__c field
can you please guide me on this.
Thank You
I created trigger as per you suggested but still Order count on not updated in Number_of_Orders__c field
can you please guide me on this.
Thank You