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
Glenn Nyhan 91Glenn Nyhan 91 

Process Builder and Lookup Fields - Adding Contacts to a Campaign

I set up a Process Builder process where when a Staff contact record is created and 3 fields are populated by the admin the contact is automatically added to our newsletter campaign. Now I'd like to use the same process but with a twist where when the contact is created and comes into the system a lookup searches to see if a contact already exists and updates that contact record if so. Is this possible? Thanks in advance for any help. 
ANUTEJANUTEJ (Salesforce Developers) 
Hi Glenn,

As stated in https://salesforce.stackexchange.com/questions/203999/find-duplicate-opportunity-with-process-builder#:~:text=The%20best%20you%20can%20write,record%20and%20can%20compare%20them. it would be much preferable to write a trigger to check the duplicate and incase if there are any you could write the logic to update the existing values.

I hope this helps and in case if this came in handy could you please choose this as best answer so that it can be used by others in the future.

Regards,
Anutej