The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
0answers
19 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
22 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
10 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
22 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
7 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
28 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
82 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
61 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
35 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
43 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
31 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
38 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
35 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
42 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
26 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
67 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
43 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
93 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
35 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
80 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
91 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
62 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
116 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
64 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
191 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
30 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
36 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
63 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
31 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
159 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
196 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
55 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
767 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
279 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
210 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
312 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
367 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
295 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
121 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 ...
4
votes
1answer
86 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
119 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
250 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
212 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
163 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
476 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
152 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
74 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
272 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
408 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 ...