The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
2answers
16 views

Opportunities Team members and opportunity line item

Is there a way to query for the opportunity line item based on the opportunity team member? Currently I am doing this : for { Select Opportunity.name, name from opportunityteammember where name = ...
0
votes
1answer
29 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
2answers
26 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?
2
votes
1answer
76 views

The Ominous INVALID_CROSS_REFERENCE_KEY Error on OrderItem Insert

So in an attempt to convert an OpportunityLineItem into an OrderItem, I get the mysterious and vague INVALID_CROSS_REFERENCE_KEY Error on insert of an OrderItem list. What's odd is my test class runs ...
0
votes
1answer
59 views

Add Products to a New Opportunity

I have a trigger that is meant to fire when certain conditions are met on an edited Opportunity. The trigger is designed to create a new Opportunity using some values from the previous Opportunity. ...
-1
votes
2answers
35 views

Populate_Extension: execution of BeforeInsert caused by: System.NullPointerException: Attempt to de-reference a null object:

Can anyone help me out with this Error Apex trigger Populate_Extension caused an unexpected exception, contact your administrator: Populate_Extension: execution of BeforeInsert caused by: ...
0
votes
0answers
37 views

Error as :Field is not writeable: OpportunityLineItem.Extension__c

Can any one help me out with this Error. Error as : Field is not writeable: OpportunityLineItem.Extension__c Error line is :ol.Extension__c=(ol.Extension__c)*0.01; Im writting an apex trigger to ...
1
vote
1answer
45 views

impossible to work with opportunity product schedules in the Salesforce1 app?

We have opportunity product scheduling enabled on our org. This is all working fine. Now, we are about to open up the Salesforce1 app for our users and were doing some checks of what was working ...
0
votes
1answer
46 views

How can I get the product name having created a new opportunityLineItem in memory?

I have created a new opportunityLineItem: OpportunityLineItem newOppLineItem = new OpportunityLineItem(OpportunityID=contOpportunity.id, PricebookentryID=contPriceBookEntryID, unitPrice=1, ...
0
votes
0answers
25 views

Pulling Product description through from Opportunity Product as a default value but can be edited

When I add a new product onto an Opportunity I would like the description from the Product to be shown on the creation form as a default value in a text area field. I would then like to be able to ...
0
votes
1answer
79 views

SOQL: Select Opportunity based on Product fields

I am trying to query Opportunities which have a Product matching certain criteria on, something like below: SELECT Name FROM Opportunity WHERE type != 'renewal' AND Id IN (SELECT OpportunityId ...
2
votes
2answers
66 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
56 views

How to mimic the functionality of the “Add Product” button in within the Product Related list in Opportunity?

I need to mimic the functionality of the "Add Product" button that is shown on the Product Related List within Opportunity. And I need to add it to a related list for my Custom Packages Object I ...
2
votes
1answer
37 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
59 views

Opportunity product and Quoteline item have the same behaviour

Can any one let me know .Opportunity has relatinship to opportunity product and quote object .Do opportunity product and quoteline item are related or do their have same behaviour or if different what ...
0
votes
2answers
53 views

Variable does not exist: PricebookEntry

Can any one help me on this. I have a visual force page created in PDF format. I have few of the products with different names in different product family. If the product line for the product selected ...
1
vote
1answer
63 views

Unit price to be changed on visual force page PDF display only

Can any one help me on this. I have a visual force page created in PDF format. I have few of the products with different names in different product family. If the product line for the product ...
0
votes
1answer
66 views

Formula on product family

Can any one help me on this . I do have few of the products with different names in different product family. If the product line for the product selected in opportunity items is ‘DIE’ make ...
0
votes
1answer
30 views

Trigger should restrict only for profiles that are outside of the list

Can anyone help me out .I have a trigger on Opportunitylineitem which gets fired on every profile .Now these are the profiles which are in the list 'System Administrator' && 'Custom Marketing ...
0
votes
0answers
114 views

UPSERT opportunitylineitem via apex dataloader commandline causing Error code is:DUPLICATE_VALUE

I have created a external id field and made it to unique and is having combined text by concatenating OpportunityId and PricebookId; I have .csv file with PriceBookID, Opportunity Id and other ...
0
votes
1answer
46 views

Trigger not to fire for the following profiles

Can anyone help me out .I have a trigger on Opportunitylineitem which gets fired on every profile .Now the trigger should not get fired for few of the profiles like 'System Administrator' && ...
0
votes
1answer
122 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 ...
0
votes
0answers
19 views

How to add picture column in OpportunityLineItem in SelectSearch page

I want to add a picture detail into OpportunityLineItem. I created a formula field with IMAGE but my page doesn't render the picture. The message is "Image Added by User...". Some of you've added ...
0
votes
1answer
97 views

how to get the opportunityproduct fields in opportunity object in validation rule

I want to create a validation rule at "Opportunity" Standard Object to validate the following. Opp record Type – sample And Stage not equal to ‘Pending Approval’ Product or product code(item ...
2
votes
2answers
81 views

Opportunity product validation

I want to create a validation rule at Opportunity product to validate the following. Opp record Type – sample And Stage not equal to ‘Pending Approval’ Product or product code(item number) ends ...
4
votes
1answer
98 views

Do Opportunity Products (OpportunityLineItems) count against storage limit?

I am bit confused about whether Opportunity Products count against storage limits or not? We have a lot of Opportunity Products in our system but in the storage tab, we do not see Opportunity ...
1
vote
1answer
89 views

Find Duplicate before create custom object record

I'm new to trigger and trying to write one that will create custom object Existing_Service__c based on OpportunityLineItem when Oppty stage is Won - All Approved. But I've facing a few issues: - How ...
0
votes
2answers
278 views

Error: Invalid field selected for SObject OpportunityLineItem

Can any one help me out on this Error: Invalid field selected for SObject OpportunityLineItem. This is a page created for multiple row to edit.Any suggestion plz. Here is the VF page : ...
0
votes
0answers
35 views

Anyone found issues populating/maintaining the OpportunityLineItemSchedule data via apex?

Anyone experience issues maintaining OpportunityLineItemSchedule data via Apex only and not use product2 default schedules? I am working on a solution to automatically populate OLI revenue schedule ...
0
votes
1answer
69 views

Prevent users from adding more than one Products to an Opportunity

I would like to prevent users from adding more than one Product to an Opportunity (Number of Opportunity products must = 0 or 1) without using code. I have tried creating validation around the ...
0
votes
0answers
65 views

Product with Orders and Opportunities joined report

I'd like to create a report showing how many actual Orders have been created compared to the number of Opportunities - but split by products. I thought I would be able to create a joined report from ...
1
vote
0answers
88 views

Trigger on Opportunity - find out what OpportunityLineItem was deleted

I have a trigger on the Opportunity that fires BeforeInsert & BeforeUpdate. Among other things, one of the requirements of the trigger is that a specific field on the opportunity is updated if an ...
1
vote
2answers
234 views

Updating OpportunityLineItem fields issue

I've written a trigger that updates some fields on the Opportunity Product object with Product values when the Opportunity reaches 95% probability. The trigger works when I edit and save the ...
3
votes
2answers
104 views

Why can't the Opportunity amount be changed by a trigger?

I have more than one discount field in opportunitylineitem, so I created a custom field that sum all opportunity products total__c. But I need see amount in forecasts, so I created a trigger that ...
3
votes
1answer
140 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 ...
4
votes
2answers
114 views

How to count OpportunityLineItems left in an after delete OpportunityLineItems

I have a trigger on the OpportunityLineItem acting after delete. From that trigger, I want to query all the Opportunities associated to the OpportunityLineItems deleted to see if they still have other ...
0
votes
0answers
96 views

custom object Lookup relation should be given to OpportunitylineItem or opportunity product

I have created a custom object as OpportunitylineItem and wanted to give a lookup relation with standard opportunityline item .So now i should create with the opportunity product or standard ...
1
vote
1answer
97 views

What is the Relationship b/w Opportunity products and opportunity Line Item

can any one help me out .What is the relation ship b/w Opportunity Products and Opportunity Line Item.Are their same or different in their behaviour.Any help is very much appreciated.
1
vote
1answer
121 views

how is opportunity line item and schedule are related

Can any one let me know .How is opportunity line item(Opportunity Product) and Schedule are related .Because i could not the Schedule list in the developer edition when created a opportunity line item ...
0
votes
0answers
94 views

How can i populate the values in a related list i.e Schedule of an opportunity line item

I have an opportunity object ,with the related list as products.We do have different products with their sales price ,quantity ,list price etc.Now when i click on one of the product name ,it takes me ...
-1
votes
1answer
39 views

Duplicate opportunity product search

Whenever you add a product to an opportunity there is a search box that is much more robust than the common lookup value search box. You can filter products by all sorts of values. I'm creating an ...
1
vote
1answer
228 views

Formula to calculate discounts

I have more than one discount in my opportunity line item. How can I calculate the total in discounts in formula field? like Unit price =100 Discount1 = 10% Discount2 = 10% Total=81 ...
1
vote
1answer
77 views

Opportunity Amount field rollup lifecycle

I recently experienced odd behavior where a trigger depending on the the Opportunity.amount field was not picking up the correct values from the amount field even though the context was after update. ...
1
vote
2answers
186 views

How do I copy products from one Opportunity to another in apex

So I have a trigger on Order in a certain condition I need to create another opportunity based on the Order's current opportunity. It was pretty straight forward except for getting the products to ...
0
votes
0answers
54 views

Line Item Name in Flow Loop causing an unhandled fault

I have a Flow Loop that is iterates through a collection of Opportunity Line Items and displays a single field from each line item. It works if I ask it to display the ID. It works if I ask it to ...
4
votes
1answer
155 views

Accessing OpportunityLineItem ProductCode field

Currently I'm having issue saving my code: public static void myMethodMyMethod(Map<Id,OpportunityLineItem> OLIs, String action){ for(OpportunityLineItem oli:OLIs.values()){ ...
1
vote
2answers
115 views

Could an opportunity exists without products? What is the use of it?

I am having a confusion whether an opportunity can exists without products. If such an opportunity exists then what would be the use of it in the context of business perspective? If i recall correctly ...
0
votes
0answers
140 views

Looking for a way to update a field on an Opportunity Product when a field on the Opportunity is checked

We have a start date on the Opportunity Product that we would like to be able to automatically update to the close date on the opportunity only some of the time. We thought that a check box giving the ...
2
votes
3answers
271 views

Why is Salesforce hiding Discount, UnitPrice and TotalPrice decimals?

I've been migrating some QuoteLineItem and OpportunityLineItem records, and I noticed an odd behavior of the Salesforce platform. First, here are the field definitions: Here, we can see that: ...
1
vote
0answers
161 views

Sync opportunity products to order products in apex

I am trying to sync opportunity products to orders products when creating a new order, based on a shared account, like you can with quotes trigger Createproductsonorders on order(after insert, ...