Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
187 views

Problem with a validation rule in Order Item

Hey everyone I'm kind of a newbie in my journey in salesforce. And I'm kind of struggling with this one validation rule I'm trying to write. Now the thing is in Order Item there is the product code ...
dukefb's user avatar
  • 13
0 votes
1 answer
538 views

I want to copy Order Products to Contract Line Items using Apex

I have a requirement of creating Service Contracts when Order is Approved and add Order Products inside to Contract Line Items in Service Contract. Following is the code I am using to accomplish what ...
sheraz hassan's user avatar
0 votes
1 answer
4k views

Single SOQL query to list ALL Products with ALL Quote Line Items and ALL Order Products?

While both Quote Line Item and Order Product have a lookup fields to Product, no relationship name is shown in Workbench. Further digging indicates a somewhat hidden PriceBookEntry object exists in ...
Alexis Kasperavičius's user avatar
1 vote
1 answer
2k views

Is it possible to update Order Product on Draft Order?

We are trying to utilize the Order object, but we're finding that if we create an Order Product, we are unable to change the product (i.e. essentially the Pricebook entry), even if we're in a Draft ...
Maya Tran's user avatar
  • 249
5 votes
1 answer
3k views

In which sequence should I be creating/inserting order/orderItem/pricebookEntry/product2?

I'm on the advanced apex super badge step 7, and before this I thought I had a good understanding of order/orderItem/pricebookEntry/product2/pricebook2 objects. However, upon creating my own ...
rna7's user avatar
  • 347
4 votes
0 answers
130 views

How to use Reduction Orders with decimal / non-integer quantities?

I'm considering using Reduction Orders to model the partial refund of an annual service. Example: Create and Activate new Order A with one line, Quantity = 1, Price = $15000 Create and Activate ...
Matt and Neil's user avatar
3 votes
2 answers
2k views

Assign Product to OrderItem

I am trying to create an orderitem from visualforce page and I am getting an error Attempt to de-reference a null object while assigning pricebookentry.priduct2Id.Here is my part of code where it ...
sfdc's user avatar
  • 13.8k
8 votes
3 answers
8k views

Product2 field in OrderItem Object

When I ran below query in workbench/developer console SELECT product2 FROM OrderItem am getting below error No such column 'Product2' on entity 'OrderItem'. If you are attempting to use a custom ...
sfdc's user avatar
  • 13.8k