The tag has no wiki summary.

learn more… | top users | synonyms (1)

3
votes
1answer
29 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
23 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 ...
2
votes
1answer
30 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
22 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
24 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
22 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
28 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
16 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
50 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
32 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
64 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
27 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
63 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
86 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
44 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
85 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
49 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
185 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
26 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
35 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
62 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
29 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
136 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
171 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
52 views

Aggregating Results: Not grouping properly

I have a query onto the OpportunityLineItem table. AggregateResult[] OppLineItemsPlays = [select OpportunityId, PricebookEntry.Product2.Play__c, COUNT(id) ...
3
votes
1answer
616 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
206 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
157 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
271 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
296 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
280 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
102 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 ...
3
votes
1answer
73 views

Different currencies in the same opportunity

it's possible to have different currencies in one opportunity? for example: line item 1 $USD line item 2 $MXN Thanks
1
vote
2answers
105 views

Schedule (OpportunityLineItemSchedule) Validation?

Anyone know of a magic way to do "Validation" on Schedule items? In our example, we want to stop most profiles from touching a Schedule item that has a Schedule Date of "before today" (it's more ...
0
votes
0answers
18 views

Setting up media campaign product

We want to use the Product object and Revenue Scheduling to drive our Forecasts, but we sell media campaigns. For instance, a rep might sell a 30-day campaign for $30,000. I want to provide the rep ...
1
vote
1answer
233 views

Need Help With My Trigger to Update OpportunityLineItem [duplicate]

I have a problem with my update trigger. I created Order and Order Line Item custom objects, same and related with Opportunity and Opportunity Line Item. When I create an Order, a related Opportunity ...
0
votes
1answer
170 views

How do you incorporate product family into a validation rule for closed/won opportunities

I am trying to create a validation rule that will require a date field (renewal date) be populated before an Opportunity can be closed as won if a product from a particular family (Software) is ...
3
votes
0answers
133 views

Mass update OpportunityLineItem UniteCost (SalesPrice)

I have this issue every year.... We use opps to keep track of our renewable business year on year. The renewal opp is created automatically when the previous opp is closed/won. A product is created ...
0
votes
1answer
428 views

Unable to add Opportunity Products

One of my user doesn't able to add products to an Opportunity & at the same time I am able to add products to one of my temporary created Opportunities by related that Product-Portfolio to it. ...
4
votes
1answer
130 views

How to add a flat amount discount on an oppty/quote?

I have a very complicated oppty, that eventually, needs to get a discount of XX dollars. I have the SF quotes module installed, thinking I can modify the fields there. I can play with each lines % ...
2
votes
1answer
72 views

How do I pre-populate a report filter from the URL?

I have a very simple report which pulls in opportunity line item data. The only filter for the report is the opportunity id. I am trying to pre-populate the report with the opportunity id by going ...
5
votes
2answers
253 views

java.sql.SQLException error caused by OpportunityLineItem DML request

In our Salesforce.com organization, we have a trigger on the OpportunityLineItem object (insert/update), automatically generating OpportunityLineItemSchedule. The product is schedule by revenue, ...
1
vote
1answer
366 views

New Active Product not showing up in Price Books and Opportunities

I've just added a new product and marked it as active. Now I'd like to link a few opportunities to this new product but it's not showing up in either the Opportunity "Add Product" page or the Price ...
2
votes
1answer
491 views

Populate a Lookup Field on OpportunityLineItem with Custom Object Record Just Created from Opportunity Line Item Trigger

In the answer to this question: Maintaining a reference to sObjects being upserted for subsequent related object insertion There is a suggestion to: What about building an OLI External Id, stuffing ...
2
votes
1answer
230 views

OpportunityLineItem trigger when SortOrder is saved

I'm trying to access OpportunityLineItem whenever the SortOrder is changed. However the trigger for update actions doesn't fire when I hit the save button from the page where we sort the Opportunity ...
1
vote
1answer
415 views

Using multiple pricebooks in an opportunity

When adding products to an opportunity I can only use one pricebook. In my case I need products from multiple pricebooks. How can that be done?
4
votes
1answer
210 views

How to get a report of accounts without a certain product?

I need to get a report of accounts of which never purchased a certain product. Is there a native way/report to do that? I created a custom report. What I need is the AUB-C = All accounts with a ...
4
votes
2answers
409 views

How would one track field history for OpportunityLineItemSchedules?

Unforntunately Salesforce does not support Field History for OpportunityLineItemSchedules. A workaround would be to duplicate Salesforce's Field History object and update it using a trigger. (I have ...
2
votes
1answer
418 views

UseStandardPrice field when import PricebookEntry

I’am going to insert the prices for my products, but i’m not sure about how setup (true or false) the field UseStandardPrice of the object PricebookEntry. I have found this : UseStandardPrice ...
0
votes
1answer
281 views

How can I sync a subset of Quote Line Items?

Here's the basic rundown: I've got a checkbox on my Quote Line Item object, and when I sync the Quote I want to prevent some items from becoming Opportunity Line Items based on the value of that ...