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
santanu boralsantanu boral 

Post approval action on Knowledge articles

I have a business requirement as follows:
When a knowledge article gets approved, the article title, subject and article link to be posted on chatter and will be available to specific group(s).
I already have an approval process which is updating an article as 'Published' status after final approval action. I want to leverage this same approval process with this additional action.
I know that we cannot define trigger on Knowledge article types.
Any feedback and help is appreciated to implement this functionality. Thanks.
Best Answer chosen by santanu boral
santanu boralsantanu boral
I have implemented this functionality through Process builder.
Defined the criteria for 'Published' Knowledge article and in the immediate action chosen 'Post to Chatter'.

All Answers

santanu boralsantanu boral
Can you please try to write a trigger like this and compile and let me know the outcome:
 
trigger test on Article_Type__kav (before insert) {

}
It will throw a Compile Error: SObject type does not allow triggers
santanu boralsantanu boral
I have implemented this functionality through Process builder.
Defined the criteria for 'Published' Knowledge article and in the immediate action chosen 'Post to Chatter'.
This was selected as the best answer