I created a formula field to know the created task is for contact or opportunity or lead. So I tried to create a formula field Based on whatId & whoId.
But it throws a syntax error. Can anyone tell me where I have been going wrong
For reference:
IF(
BEGINS(WhatId, “006”), "Opportunity",
IF(
BEGINS(WhatId, “001”), “Account”,
IF(
BEGINS(WhoId, “00Q”), “Lead”,
IF(
BEGINS(WhoId, “003”), “Contact”,””))))