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
Josie FarrellJosie Farrell 

HELP - Trigger for selecting the pricebook in an order or opportunity

I am very new to salesforce and am trying hard to write a trigger that will select the pricebook for an opportunity or an order based on the Pricebook lockup field in the account. I know that I need to set the Pricebook2Id field to equal Account.Pricebook__c but I can't figure out how. Can someone please help me.
bob_buzzardbob_buzzard
Can you post the code that you have so far?