You need to sign in to do that
Don't have an account?
Unique Two
Assistance required - apex trigger for existing email address
Hi everyone new here as the community has prompted me to ask this forum this question.
I have a custom object that the data is filled from an API connection. So when that new custom record is created I'd like to check to see if the email address on that record matches to any lead, contact or account that we may already have in Salesforce.
If YES to a match it would be great to populate the URL of that record ID to the custom object record.
Does anyone have sample apex code or advice or able to assist me please?
I have a custom object that the data is filled from an API connection. So when that new custom record is created I'd like to check to see if the email address on that record matches to any lead, contact or account that we may already have in Salesforce.
If YES to a match it would be great to populate the URL of that record ID to the custom object record.
Does anyone have sample apex code or advice or able to assist me please?
From developer console.
If this answers your question mark Best Answer it as solution and then hit Like!
Using the code below you can achieve your requirement and populate the IDs of Leads and Contacts:- Hope it helps,
Mark it as best to close the thread if you find it helpful.
Regards
Ajay