You need to sign in to do that
Don't have an account?
Mattwest
Need help on a Trigger to populate lookup fields
Hello All,
I am new to Apex and I am trying to build a trigger that will pull field values from a single record in a custom object called system_policy__c. There is only one record for that object and it is intended to set default values for new records created.
So basically I'm trying to pull a lookup field value from system_policy__c.field1__c to sample_object__c.field1__c
I'm trying to populate these fields (before insert,before update)
I am just learning, and any help will be much appreciated!!! Thanks in advance for any help you may be able to give!
Hi,
Below is code snippet which may help you:-
Please let me know if you have any question around this.
Happy to help you!
All Answers
Hi,
Below is code snippet which may help you:-
Please let me know if you have any question around this.
Happy to help you!
Thank you! I'll try it shortly and let you know how it works!
Worked Perfectly, Thank you... You've helped me learn a lot!
Happy that it worked for you! :)
Could you please be kind enough to give me KUDOS for this, if it helped you.