function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

triggers on knowledge base object?

we want to create a trigger on knowledge base object but sfdc don't allow us to create a trigger or workflow on knowledge base.

Can any body suggest us how to do this??


what is your requirement on this ?


Hi, Thanks for the quick reply.


When new article or tutorial is added in the knowledge base object than we want to create a trigger on after insert for updating the records on other object.


If there could have been a provision to add fields to this object then we might have done something. But I am not sure if we can do that in any other way.


When you define your article types, there would be a corresponding object created in backend. You may not add triggers or validations on these objects but you CAN define Workflow Ruels. 


Create an email alert with Workflow rule and have that email sent to salesforce email service. Then you can define your entire trigger transactions inside email handler. KbManagement.PublishingService class has all support API that you may need.


Let me know if this is not clear.




Has anyone success with that yet?


we just came across that a workflow field update does NOT work on published article.

is there a workaround to grab a publisher and populate its name inside the article once its published?


either way workflow or trigger