• trav2474
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies

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

Is there a way to clone a price book using Apex code? I know you can via the GUI...but i cant find how to do it using Apex code.

 

Thanks.

Getting the following error when trying to add project into IDE

 

Unable to fetch organisation details for 'mike.db@cloudava.com'

 

INVALID_TYPE: Cannot use ApexComponent in this organisation!

 

Any ideas?

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

Is there a way to clone a price book using Apex code? I know you can via the GUI...but i cant find how to do it using Apex code.

 

Thanks.