+ Start a Discussion
InternalServerErrorInternalServerError 

Trigger on CaseArticle Object ?

Hi All,

 

I am trying to update a field in a case with the number of KB Articles attached to the case after a KB article has been attached to the case.

 

The problem is that the object CaseArticle doesn't seem to be available for triggers. Also, when we add a KB article to a case this doesn't cause any DML operation on the case object so I creating a trigger on the case object wouldn't work. Any ideas?

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
AdrianCCAdrianCC

Hello Error! :)

 

From what I've read it's not possible to create a trigger on Case Article. Sorry :(

 

You could create an apex job that runs hourly, or daily, to count the related records. See apex scheduler: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

 

Thanks,

Adrian

All Answers

AdrianCCAdrianCC

Hello Error! :)

 

From what I've read it's not possible to create a trigger on Case Article. Sorry :(

 

You could create an apex job that runs hourly, or daily, to count the related records. See apex scheduler: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

 

Thanks,

Adrian

This was selected as the best answer
InternalServerErrorInternalServerError

Thanks Adrian. That looks like a good alternative.