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.– S..Dec 15, 2016 at 19:12
-
Trigger on Case? Or trigger on task?– RickyDec 15, 2016 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.– S..Dec 16, 2016 at 7:03
-
Or process builder as said in answer below.– S..Dec 16, 2016 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.– RickyDec 16, 2016 at 14:26
1 Answer
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.– RickyDec 16, 2016 at 14:26