You need to sign in to do that
Don't have an account?
Najoop
any help/direction is appreciated.
Apex trigger to update case
Hi,
Still learning Apex and there seem to be a problem with this code below.
getting error
|
Thanks
trigger CaseCloseTrigger on Case (after update) {
Case[] cs = Trigger.new;
Set<ID> cseIds = new Set<ID>();
// Get suggested solution on case and update solutionstatus field for dashboard
cse = [select SolutionID from CaseSolution where CaseId = {!Case.id};
if (Cse != NULL){
cs.ClosedKBStatus__c = 'Closed with KB';
}
update cse;
}
Hey
Just a small syntax problem:
cse = [select SolutionID from CaseSolution where CaseId = :Case.id];
Wes
All Answers
Hey
Just a small syntax problem:
cse = [select SolutionID from CaseSolution where CaseId = :Case.id];
Wes
Thanks Wes! it was it.
though, need to use DML here as we cannot use trigger.new context to update objects.
thanks again.
What is "cse"?