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
Bradley Scott FarquharBradley Scott Farquhar 

How can I type in contact record Id vs their name and save the related object

Currently you can go to a contact lookup on any related object and type in the contacts name, save the object and the contact will be assigned unless there is a duplicate name. Is there a way to type in the contact id and hit save? I would like this process so there will never be any duplicates. 
Suraj Tripathi 47Suraj Tripathi 47

Hi Bradley,

we can write a trigger for this.

If there is already a contact is present and you want to insert same name of contact then throws an error that "this name of contact is present"

It means every contact would be unique

is this work for you?

Thank You