The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
2answers
26 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
41 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
30 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
23 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
25 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
39 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
39 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
17 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
47 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
41 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
55 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
53 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
1answer
74 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
15 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
44 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
25 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
50 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
141 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
77 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
59 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 ...
3
votes
2answers
64 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
51 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
54 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
52 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
67 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
29 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
109 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
51 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
121 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
42 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
102 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
97 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
84 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
171 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: ...
0
votes
0answers
88 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, ...
1
vote
1answer
195 views

Reference Opportunity Visualforce Page from Quote Page Layout Button

Our company has a custom product selection tool on a visualforce page with its own apex class for the opportunity line item section. Is there a way I can create a custom button on the quote page that ...
2
votes
1answer
37 views

How to make a field on Opp Line item searchable

we are using Opportunity Products and pricebooks. So we have different line items on an Opportunity. Every line item (opp product) has an autonumber and other unique entries. Is it possible to make ...
1
vote
0answers
40 views

strange behaviour of validationrule on opportunityline in test coverage

Some time back, I asked the following question: different behaviour when adding opportunityline through visual flow? This has always remained a mystery... Now today, I stumbled upon this behavior ...
0
votes
1answer
67 views

Updating a record without DML

I am writing an after update trigger on OpportunityLineItem that will update an opportunity based on values retrieved from it's respective line items. By sheer accident, I forgot to include the ...
0
votes
0answers
32 views

Help creating a bulletin or notice type object

So I have a conundrum that I can't figure out. I need to mass email a list of contacts based upon their account. The only way I can get the Account is by searching OpportunityLineItems by Product and ...
1
vote
1answer
183 views

Get Opportunity with Opportunity Line Items

How can I use the salesforce api to get a list of opportunities such that each opportunity contains it's opportunity line items?
2
votes
2answers
220 views

Help with Field Formula

Not sure if this is entirely possible. I have been asked to create a checkbox field on the Account object. Below is the SOQL query that would list all accounts that have Opportunities that are 'Closed ...
1
vote
0answers
56 views

Aggregating Results: Not grouping properly

I have a query onto the OpportunityLineItem table. AggregateResult[] OppLineItemsPlays = [select OpportunityId, PricebookEntry.Product2.Play__c, COUNT(id) ...
4
votes
1answer
999 views

Relation Between Opportunity Products and Opportunity Line Items

I read about Opportunity Object and OpportunityLineItems and sub object in Opportunity named Opportunity Product Object.Is OpportunityLineItems and Opportunity Products are same thing or different?? ...
3
votes
2answers
364 views

Where is PricebookEntry Object

i am following this link http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_erd_products.htm .In this ER diagram there is Pricebook2Id field on Opportunity Object but i can't see any ...
1
vote
3answers
265 views

How do I update Opportunity Product with Product's Custom Fields Value

I have custom fields in Products. I want to populate these information in Opportunity Products. Any idea how this can be done?
0
votes
1answer
373 views

Test Class not passed

Here is my test bulkify test class and my actuall trigger handler methods. I dont know why but my code coverage is %76 and still it says test is not passed.. Is there anyone can help me about this ...
0
votes
1answer
467 views

Need to get Opportunity ID

I need to get Opportunity id to insert new OpportunityLineItem.. OrderProducts_c object has master detail relationship to Order_c which has lookup to Opportunity. I don't understand this code suppose ...
2
votes
1answer
313 views

Salesforce Triggers : 1) 101 soql error when upserting product records 2) bulk opportunity update not reflecting on opp

Here is my product trigger that calls the opp trigger trigger productdata_changed on Product2 (after update) { for(Product2 prod:Trigger.new) { List<Opportunity> opp = ...
2
votes
1answer
137 views

different behaviour when adding opportunityline through visual flow?

To give some context, I had the requirement that I needed to guide the users through a couple of screens when closing an opportunity. So logically, I started implementing this requirement using ...