+ Start a Discussion
vishalSharmavishalSharma 

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??

AmitSahuAmitSahu

what is your requirement on this ?

vishalSharmavishalSharma

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.

AmitSahuAmitSahu

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.

nkgnkg

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.

 

nKG

MoggyMoggy

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

thanks