1

I have got requirement where I want to create task on Account object as soon as someone creates on case record. In general I want to list all tasks from several Cases under one account. Is there any out of the box way in salesforce to do that? For example attachment can automatically associate with account if attached in any case because of account case parent-child relationship. Is the same thing possible in Task?

  • You can do a trigger after insert on Case. Get the Account from the Case record. Create Task with WhatId = the account that you got from the case. – N.. Dec 15 '16 at 19:12
  • Trigger on Case? Or trigger on task? – Ricky Dec 15 '16 at 20:04
  • On Case, 'cause you want to create a Task after creating a Case. So, the trigger will be an after insert on Case. – N.. Dec 16 '16 at 7:03
  • Or process builder as said in answer below. – N.. Dec 16 '16 at 7:04
  • Oh, sorry for misunderstanding. I want to create task on account when someone create task on a Case object. So account will display all the task from its child cases. While individual case will only display task related to that particular Case record. – Ricky Dec 16 '16 at 14:26
2

You can do this via Process Builder on creation of a case.

Object: Case
Run on Creation
No criteria, always run
Action: Create Record (task)
    Related To ID: Reference [Case}.AccountId
    Status: Closed
  • Oh, sorry for misunderstanding. I want to create task on account when someone create task on a Case object. So account will display all the task from its child cases. While individual case will only display task related to that particular Case record. – Ricky Dec 16 '16 at 14:26

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.