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

1 Answer 1

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.

4
  • 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
    Commented Oct 27, 2014 at 21:31
  • @Sfdcas I have updated my answer.
    – PepeFloyd
    Commented Oct 28, 2014 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
    Commented Oct 28, 2014 at 18:43
  • @sfdcas is not possible unless you go the apex way.
    – PepeFloyd
    Commented Oct 28, 2014 at 20:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .