All Questions
8 questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...