function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LudivineLudivine 

How to update the Related To field on Workflow Task

Dear all,

I have set up a workflow task to create a task each time the answer on my custom object is no.
It works but the Related To field is not populated!
How can  ido to get also this inforation in the task?

Thanks in advance.
Deepak Kumar ShyoranDeepak Kumar Shyoran
Have you provided in Id for the WhatId field of Task during creating on new Task records ? If not then please provide a Id for this field to populated Related To field.
LudivineLudivine
Sorry I don't understand, could you explain more the steps I have to do?

Thanks
rohitsfdcrohitsfdc
Syntaxis,
While creating a task in workflow rule, system asks you for the related to field.
It could be a user, Role, Owner.

Let me know in case you want more info.

Thanks
LudivineLudivine
Hi Rohit,

When we create a task from a Workflow task, the field proposed is Assigned To but not related To, It is WhatId field, not WhoId or OwnerID.
Why I need this, because when my survey is created in my org, If the contact answers badly, we send a task to the Account Owner to call him and we would like to have in the related To field(WhatId) the Id of the related Survey.
Hope this is clear enough, if not just tell me.
Thank you.
rohitsfdcrohitsfdc
"Related to" gets auto-assiged to the object which has initiated the workflow rule.

In your case, the related to will be Survey record. I dont think that a task can be related to Lead or Contact.