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
B_kB_k 

Populate Phone And Email on Task

Hello,

I've created two lookups on Activity object on Lead and Contact, trying to use your formula:
IF( ISBLANK( Contact__c ), Lead__r.Phone , Contact__r.Phone ).
No syntax error though.
However, it appears it does not work, the phone number from either Lead or Contact is not populating on Task.
 is only works with the new tasks. And I'm trying to backfill existing tasks.Populate Phone And Email on Task
AnkaiahAnkaiah (Salesforce Developers) 
Hi Bakil,

for existing task records, if you don't have data for contact or lead field then formula dont have the phone data.

Check for all existing records should have contact or lead field data for task.

So you need to update the existing data using data loader/workbench.

If this information helps, Please mark it as best answer.

Thanks!!
 
B_kB_k
Hi  Ankaiah, 

yes i do have data for contcat and lead field but it did not appear on tasks details page. I craeted process builder to update record but still not working. It works if i creat a new task but i want to backfill existing tasks.