You need to sign in to do that
Don't have an account?

Clone price book and all the related price book entries...how?
How do i go about cloning a price book and all it's entries? I know you can with the UI...but how do I do it with APEX? I can call the clone method on the pricebook object...but there is nothing like that for the pricebookentry object, that i can find.
Thanks in advance.
Travis
All Answers
that worked great...thanks...only change i had to make was to add "IsActive = true" to the pricebookentry query...but other than that it work just like i wanted.
Thanks for the help.