1

How to write a trigger to fire a task to a public group whenever an article is created(when they are in draft) in the 'Article management' tab. This is to send a task to the public group/team to read the article which is created and then the team has to publish it. Workflow rules are not available for Article management/Knowledge articles. Thanks !

1

You can't create a trigger because triggers are not available for articles, but you can create a workflow rule on the article type. If you have an article type. called "FAQ", you should be able to create a workflow rule on the FAQ object.

UPDATE:

If the tasks are not available as actions for these objects, you can do the following:

Create a workflow rule on the article object. Have an email alert to be sent to an email service address Create a handler for the email service and from that class, create the task through from apex.

  • Thanks.I tried for the article type. But there is no task alert workflow associated with it. Anyother workaround for assigning a task to a public group when an article is created? – Sfdcas Oct 27 '14 at 21:31
  • @Sfdcas I have updated my answer. – PepeFloyd Oct 28 '14 at 9:52
  • I tried this . It creates a task but I want the task to be related to the particular knowledge article which fired the email alert workflow? how is that possible? – Sfdcas Oct 28 '14 at 18:43
  • @sfdcas is not possible unless you go the apex way. – PepeFloyd Oct 28 '14 at 20:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.