ForceLearn

how to update lookup field by using trigger

Sharing is caring!

Hi Guys,

how to update lookup field by using trigger

Today iam going to explain update lookup field, I have lot of developer faced this issue.

In order to resolve this we can use process builder too

Business case : Customer whats to update company(lookup) on expense__c based on another company__c(lookup) of object resource__c

Here is trigger

Test class for above trigger

 

Hola !! , we have update lookup field

If you find intersting please share it to others and subscribe us 🙂

Keep watching us for more updates No tags for this post.

forcelearn

Like Us for FB Page

Trailhead Profile

Subscribe Us