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
Samir MeshramSamir Meshram 

uto populate contact Info in case if the Phone number in Custom field matches any contact's phone

Hi Everyone,
 
can anyone suggest trigger which will be on case object to auto populate a contact Name in Case object.
While creating new case if user entered Phone number in custom Phone field named 'IB-Caller-Id', and that  phone number matches with any of the Contact's Phone number.
 
Thanks in advance.
Samir
 
PriyaPriya (Salesforce Developers) 

Hey Samir,

If it does not match any contact, then in that scenario what you want to be updated ? Kindly provide this information, i will try to build the trigger for you.

Thanks!

Samir MeshramSamir Meshram
Hey Priya,
Thanks for replying, 
In that case we can create new contact.