The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
14 views

Quote Sync Error

I'm syncing a quote to an opportunity and getting the following error. Anyone every seen it before? An attempt was made to modify the quote price book as the quote and the opportunity were being ...
4
votes
2answers
83 views

Junction object in Salesforce

What kind of relation should a junction object have with it's parent objects? What I know from Salesforce documentation: The junction object should have master-detail relationships with the parent ...
1
vote
1answer
34 views

Get Standard PricebookId in Apex Class

I have a situation where I was querying standard pricebook with SeeAlldata=true in test class. Pricebook2 pb2 = [select Id, Name, IsActive from PriceBook2 where IsStandard=True LIMIT 1]; Later I ...
1
vote
1answer
23 views

How to give access to all price books for a cerain user?

I need to give our Finance user, access to all price books (as he needs to edit old opptys) Is it possible to do that automatically? and not by manually going to each price book, and update the ...
1
vote
1answer
52 views

Error:-PricebookEntryId (pricebook entry is in a different pricebook than the one assigned to the opportunity): [PricebookEntryId]

i am trying to solve this error but not able to solve, can anyone plz help me out. i have already set the standard pricebook. Error---- System.DmlException: Insert failed. First exception on row ...
0
votes
2answers
33 views

How to check is Price Book added in the Opportunity or not in, Apex class, Salesforce?

Description : I am overriding the functionality of Add Product button through code (which is present in related list of Opportunity, in Opportunity Line Item.)...i need to check is Price Book added ...
0
votes
1answer
46 views

Difference between Product(Standard Price book) and Product (Saturn Price book) related list on Opportunity

Difference between Product(Standard Price book) and Product (Saturn Price book) related list on Opportunity - On some Opportunity I see Product(Standard Price book) related list and on some I see ...
1
vote
0answers
44 views

How to setup Products and Price books ? - Complex Scenario (Professional Edition) [closed]

All SF lovers, We wanted to use SFDC products/pricebooks to setup products & services and planning to go with Professional Edition. For Services, we have a standard delivery fee for the services ...
0
votes
0answers
36 views

Automatically Upsert Product to Custom Price Book

I'll preface this by saying my Apex / Trigger knowledge is very limited. Here's what I'm trying to achieve: We have 2 Price Books, the Standard Price Book which we use for our standard retail ...
3
votes
0answers
37 views

Error while adding an product to an opportunity

When user tries to Add an Product to the opportunity record ,it throws an Error as : Currency null is not supported by this org. The price book which user is selecting is "Standard Price Book" . ...
3
votes
1answer
45 views

PricebookEntry List not populated in query, don't understand why

I have the following code block: Map<Id, Product2> productMap = new Map<Id, Product2>(); List<Product2> prodList = new List<Product2>(); ...
0
votes
1answer
45 views

PHP SOAP client: Cannot set price book to an order

I'm PHP Client library to push data to Salesforce (https://github.com/developerforce/Force.com-Toolkit-for-PHP) I'm trying to create a new order, as I understand, I will need to: Create an Order ...
3
votes
2answers
143 views

Consideration when cloning a product?

When cloning a product record, which one of the following statements is true? Price book entries must be activated Price book entries in price books that user does not have access to will be created ...
-1
votes
1answer
52 views

How do I create a workflow rule to populate price book based on account?

I am trying to create a workflow rule (let me know if there is a better approach) so that when an opportunity is created and the account field is completed, the price book field in the opportunity ...
1
vote
0answers
30 views

Trying to update field when an opportunity is changed to closed/won stage and has a lineitem that is no longer active for that pricebook

Why is my trigger below not updating the field that i am wanting to use in my validation? trigger OpportunityValidationonClosed_Won on Opportunity (after update) { Set<id>prod2id = new ...
1
vote
1answer
81 views

Can the pricebook be changed when cloning an opportunity with product?

I have a location field on Opportunity which is tied up with a pricebook. If I clone the Opportunity with products, it won't allow me to change the location because it's associated to that pricebook. ...
1
vote
1answer
258 views

Pricebook entry currency code does not match opportunity currency code

I have a Visualforce page which create a product record, a priceBookEntry record and a opportunityLineItem record. I don't understand why in only one case, I get this error : In my code, I first ...
1
vote
1answer
34 views

Want to customize Pricebook and then export it into excel in a proper format

As we cannot customize Pricebook nor can we add a custom button, I have an issue. Actually I want to download a pricebook in excel format, which i can do using report with Printable view option. But ...
1
vote
1answer
31 views

Disable Hyperlinks in Pricebook

How would I disable the hyperlinks for the product name in a priceboook? I want the user to still be able to mark checkboxes to select the product but a lot of them end up clicking the product name ...
3
votes
1answer
702 views

pricebook entry is in a different pricebook than the one assigned to the opportunity

Could some body please help me on this? I am improving test coverage and below is my code: static testmethod void opportunityLineItem_Test(){ Id priceBookID = Test.getStandardPricebookId(); ...
0
votes
0answers
88 views

Add custom button into the Price Book Entry Search Layouts

I would like to add custom button into the "Price Book Entry Search Layouts". In the documentation, it says : it speaks about custom button. :/ I speak about this page : ...
1
vote
0answers
18 views

Free Applications

I have a simple question but I could not find the answer to it yet. I want to develop a Application for the Salesforce AppExchange but want to charge no price for it (Free App). So what costs do you I ...
0
votes
1answer
106 views

Adding to opportunity different products from different pricebooks

I am trying to figure it out how can I implement this idea, I saw that this question already been asked but I haven't found an answer for that. Does someone maybe knows what are the options ...
1
vote
1answer
98 views

How can we share a pricebook record to a group using apex code

I want to share record of Pricebook to a group. Their is no object called PricebookShare, how can we share if there is no object PricebookShare to share? Is there any way? Please guide me.
1
vote
2answers
263 views

Report on pricebook and products

I need to report on pricebook in order to have all products with their price on the pricebook? Any lead about that?
3
votes
2answers
245 views

Assign Product to OrderItem

I am trying to create an orderitem from visualforce page and I am getting an error Attempt to de-reference a null object while assigning pricebookentry.priduct2Id.Here is my part of code where ...
3
votes
2answers
190 views

Trigger to Update Opportunity Price Book

I created the class below to fire on an Insert/Update trigger on the Opportunity. It is meant to change the Opportunity price book based upon the value entered in a custom picklist on the Opp. ...
3
votes
1answer
92 views

Is there a simpler way to traverse relationships to update cross object fields?

I have a trigger that works but it seems like there should be a better and simpler way to accomplish the result. I have a custom object that is a child of Quote and has a lookup to Product2. I am ...
0
votes
2answers
329 views

Dynamic Way to View Pricebook Entries in their respective Pricebook through Apex?

I have an apex class and vf page that is based on the PricebookEntry object because I want to be able to have a list view of all pricebooks at the top of the vf page and each time a different ...
0
votes
1answer
98 views

How to OVerride the PricebookEntry Edit page

I wanna open my custom VF page when I click the edit button form the pricebookEntry page. is this possible? Please give me the guide. Thanks and Regards.
2
votes
0answers
163 views

Test class pattern for pricebook when standard pricebook is deactivated

I'm trying to write a test class without the "seealldata=true" option and all I have is a custom pricebook, as my standard pricebook has been deactivated. The relevant part of the test is as follows; ...
2
votes
2answers
136 views

Best practice for handeling bulk prices (graduated prices) in Salesforce

We have a client who wants to synchronize products between Salesforce and his ERP solution (Sage Office Line). In Sage it is possible to have many graduated prices (in German we say "Staffelpreise") ...
2
votes
1answer
44 views

Soft release a product in Salesforce

I want to add some products into another environment towards release and I want to be able to hide the product from certain users for a while. Then if everything goes well I want to make it visible to ...
0
votes
1answer
17 views

what is the use of PricebookEntryHistory__c

what is this PricebookEntryHistory__c object used for in Salesforce? Everytime i insert/update a 'pricebooktentry' via coding i have to create a PricebookEntryHistory__c?
0
votes
1answer
15 views

Can I use pricebooks for upgrades?

I want to implement pricebooks in my application, and I have successfully set it up to generate net price promotions. However, I also offer product upgrades, for example - if buyer purchases Product ...
2
votes
2answers
328 views

Defaulting the Quantity and Cost on an Opportunity product line item

We have a custom field on our Opportunity Product that is called IIS Cost and we would like for some Product records to be able to have this value defaulted from the PricebookEntry. For example I can ...
0
votes
1answer
432 views

how to update opportunity line Item to refer a new Pricebook

We want the existing orders on old PriceBooks to be update to New PriceBook via dataloader. Is it possible to do this without following the below steps:? Delete line items update order header with ...
1
vote
1answer
28 views

How to sell a product upgrade?

We have several products that we sell (Say P, G, D) While for new customers it's easy, I am confused on how to sell an upgrade of any product. example: in 2015, our P product will get a new ...
1
vote
1answer
86 views

Apex SOQL doesn't honor 'with sharing' for Pricebook2

My org is running some apex code that pulls objects and passes them to a mobile app. The apex code in question is designed to be run as the sales rep that is logged in via the app. For some reason ...
1
vote
0answers
207 views

How to grant a user ability to edit the pricebook he sees?

My OWD for pricebook is No Access, this gives me the ability to restrict users to the pricebook I want them to see. I want to give a user the ability to edit the pricebook entries he sees. If I give ...
0
votes
1answer
417 views

Is Standard PriceBook available for adding to an Opportunity?

Simply the title is the question. Somewhere I have read that the standard pricebook is the list of all products with their associated prices and this can't be attached to an opportunity. If you need a ...
0
votes
2answers
102 views

Prevent deletion of price book entries

Is there any way to take away delete privileges on price book entries for a custom profile? Preferably based on conditions of price book fields, but if just altogether would be fine as well? I've ...
0
votes
1answer
32 views

Help Needed Finding a Product Field

Can anyone tell me where I can find the field highlighted in red below please? The related list is for Products, it's just been renamed to Service Line. I've checked in Service Line (Products), ...
3
votes
1answer
288 views

Cannot find product to add to Opportunity

I have crated few products. Now I cannot find them when I am trying to add them to the Opportunity. Products are active. They are added to a Price Book. Price Book is also active. Any idea what is ...
1
vote
2answers
805 views

How to do move Pricebook and Products from sandbox to production

As the title suggusts, I have created a pricebook with a list of products and their prices in my sandbox, I would like to know how I can export this data into my production instance.
3
votes
3answers
3k views

How to query the products in standard price book based on StandardPrice

I am using the standard price book for the order ,but my standard price book contains same product with different standard price.How to query the products in standard price book based on the Standard ...
4
votes
3answers
569 views

Summer 14 and Price books

Since Summer 14 released this weekend every time I try and clone a product I get the below error message and I don’t understand what its saying? I think something changed with the price book in the ...
2
votes
2answers
492 views

How can I tell if a product has an entry for the standard pricebook?

I have VF page from where i i trying to add products to a pricebook. IF the standard pricebook of the product not active then i am getting an error 'DML exception: Standard price not defined'. So how ...
2
votes
1answer
1k views

Invalid field Pricebook2Id for SObject Order. Can't set Price book for Order

I want to insert the OrderItem object using Order, Pricebook2 and PricebookEntry. I retrieved the standard Pricebook2 and inserted an Order and pricebookentry. At the time of inserting the ...
4
votes
2answers
2k views

Test code for the new standard Order object

The last line insert ordPd causes exception: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, Price Book Not Set on Order: [] All lines before the ...