You need to sign in to do that
Don't have an account?
Jaanu
soql error. .. pls help
select statment is giving error ... pls help... AccountId, Status fields on case object.
public static Integer getCaseCount(String recId) {
return [SELECT COUNT() FROM Case WHERE Status !='Closed' AND AccountId=recId];
}
public static Integer getCaseCount(String recId) {
return [SELECT COUNT() FROM Case WHERE Status !='Closed' AND AccountId=recId];
}
All Answers
Add colon (:)in like below.
AccountId =::recId
Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.
Thanks
Varaprasad
@For Support: varaprasad4sfdc@gmail.com
Blog : http://salesforceprasad.blogspot.com/