+ Start a Discussion
salesforce User 15salesforce User 15 

Create Task on Case object

 

Hi!
I cannot build this with workflow, so I will need a trigger built to do the following:

Create a task record on the Case object when a Case record is created with Record Type and Account Name is not Null

alibzafaralibzafar

You can do this with Workflow Rule. 

Create a new Workflow rule on Case Object, then add Workflow Action to create a Task. What's stopping you to build this Workflow rule?
salesforce User 15salesforce User 15
In the task object there is a field called ' Assigned To'(Owner) = the user that is in the XYZ__c field (this field is a lookup to the Custom object ABC__c and then there is another lookup to the User object called UW User) on the Account that is on the Case record. to meet this i think trigger is the better option I am thinking. Correct me If I am thinking  wrong? 
alibzafaralibzafar
Don't know what your exact Data Model is, but from above yes you might need to go with a Trigger if you want to update 'Assigned To' field with a value which exists in another Object.