The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
1answer
16 views

How to add custom field to page multilineitem.jsp for opportunity?

Is there a way to add custom field to the page multilineitem.jsp for opportunity? (URL salesforce.com/oppitm/multilineitem.jsp) Here is page screen:
2
votes
1answer
32 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
2answers
28 views

Trigger Problems - opportunity-lineitem

i have a trigger code thats updat a custom oppertunity fields with the details of a related product (we always have only one product each oppertunity). trigger PrimaryProduct on Opportunity (before ...
1
vote
1answer
18 views

Select Multiple OpportunityLineItems in standard listview and pass those ids to vf page

I have a list view button on Opportunity Line Items related list. I want to select multiple opp line items and then pass those ids to a visualforce page. StandardSetController does not work for ...
1
vote
0answers
27 views

Opportunity Product Fields - Names Changed

I am in the process of merging two Salesforce orgs together. In one org, opportunity products have fields with names such as "Quantity" and "Total Price". The other org has those same fields, but ...
0
votes
1answer
39 views

Syncing custom fields between QuoteLineItem and OpportunityLineItem

I'm trying to syncronize between two custom fields on QuoteLineItem and OpportunityLineItem named Field1__c and Field2__c. So after inserting the QuoteLineItem the two fields will be updated on the ...
1
vote
0answers
25 views

Remove 'Del' linkfrom Action list view in product list under Oppportunities

I would like to remove the 'Del' link which appears against every product in the Products( Standard Price Book) section under the Opportunities. Is there any way to control it using profiles and ...
-1
votes
1answer
15 views

Get Opportunity StageName from helper class on OppLineItem

I'm trying to get the Opportunity Stage value from the Opp Line Item Object but my query returns a null value. What am I missing in my "If" statement? public static void ...
1
vote
0answers
23 views

Is there an option to prevent an Opportunity update on OpportunityLineItem update?

I have triggers on both, Opportunity and OpportunityLineItem (OLI). On a specific update to an Opportunity, there's a big process started at the end of which I need to update all OLIs related to the ...
1
vote
1answer
19 views

Creating an OrderItem from a QuoteLineItem

I'm trying to write a trigger that - when a Contract is activated it's accepted quote is converted into an order, under which the QuoteLineItems are now "copied" into OrderItems (order products to the ...
1
vote
1answer
96 views

Trigger on OpportunityLineItemSchedule partially working + 0% code coverage

Working properly for scheduling line items as per new updated close date but when updating date, it is scheduling correctly for quantity but scheduling revenue for next year, so instead of 12 ...
1
vote
2answers
46 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
40 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
37 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
92 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
64 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
49 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
54 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
59 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
62 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
32 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
104 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
82 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
76 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
38 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
80 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
68 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
70 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
76 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
32 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
131 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
57 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
159 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
113 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
91 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
107 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
94 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
335 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
43 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
79 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
77 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
99 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
244 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
111 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
156 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
125 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
108 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
118 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
141 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 ...