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
Katie DeLuna 7Katie DeLuna 7 

defaulting revenue schedule based on price books

I'm just now incorporating the Default Revenue Schedule for our Products. However, I was wondering if I could reate a workflow rule or some type of apex trigger that updates the product depending on the price book? If so, is there sample code that I could work off of to get me started? I just took an intro to apex, so i'm VERY new to apex.

Deepak Kumar ShyoranDeepak Kumar Shyoran
Yes you can create a W/F rule to update the Opportunity product based on Pricebook also can do the same via trigger but W/F will be best as you will not need to write even a single line of code for that.
Below are some links to start with W/F rule

Please mark this post as a best solution to your problem to help others.