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
PCPC 

Auto populate a lookup field based on cross object field

I have a custom object called Incentive_Management__c.This custom object has a lookup to the User object.

I  have a lookup relationship incentive__c  in the lead object with Incentive_Management__c.
I want to auto populate the incentive__c field in the lead if the Lead Owner and the User in the custom object Incentive_Management__c matches.
Musunuru SurekhaMusunuru Surekha
Hi Puja,

You can acheive this by writing a trigger on Incentive_Management__c object.