You need to sign in to do that
Don't have an account?
Nirdesh_Bhatt
lookup field update using trigger
I have 2 custom object customobjt1__c and customobjt2__c, both have product lookup fields.
If both product lookup field is the same then in customobjt1__c we need to insert the record name of customobjt2__c that is also a lookup in customobjt1__c. so how to achieve that?
If both product lookup field is the same then in customobjt1__c we need to insert the record name of customobjt2__c that is also a lookup in customobjt1__c. so how to achieve that?
The trigger will look something like this. This is just an example and you have to modify it accordingly
Anudeep
Actually, I need to write a trigger on Objc__1.
objec__1 (Object) : Product1__c (Field)
Object__2 (Object): Product2__c (Field)
object__1 (Object): lookup3 (field)
if I hit on save in Object__1 and manually select Product1__c (Field) then in object__1: lookup3 (field) field auto-populated., and that value should be Object__2 (Object)'s record id.
Here is the code sample I hope the above code sample will point you in the right direction. If it does, please mark this answer as solved. Thank You!
Anudeep