Questions tagged [order]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
24 views

Running into the error “Opportunity must have a primary quote in order to create an order.” when renewing contracts from Apex

Here is the code that we can run in Developer console to reproduce the error. What this code does: Renews the expiring contract by setting the CPQ renewal fields to TRUE. Queries the renewal ...
0
votes
1answer
35 views

Writing test class for order activate. Error: Required fields are missing: [PricebookEntryId]: [PricebookEntryId]

I've written a test class for order update, though I am stuck at some minor issue which I am unable to get through. My test class looks like: @IsTest public class TestCreateMyOrder { static ...
1
vote
0answers
14 views

the order rule of multiple picklist values from SOQL

What is the order rule of multiple picklist values? When I try to SELECT global multiple picklist values by SOQL which is used in custom object, the order of multiple values is not same as the order ...
4
votes
1answer
76 views

Can Platform License Users access the Standard Order Object?

Is it possible for users with a Platform license to access the Standard Order object?
1
vote
1answer
28 views

How to create a related list for Orders associated with a Contact record that appears on the Contact page?

I notice that there isn't an Orders related list that can be displayed on the Contact layout/page via the Customer Authorized By Lookup field on the Orders object. Is there a way to create a custom ...
0
votes
1answer
52 views

How to insert order and orderitems in single rest call in salesforce

How to insert order and orderitems in single rest call in salesforce? Add an Order to an Existing Account https://developer.salesforce.com/docs/atlas.en-us.api_placeorder.meta/api_placeorder/...
2
votes
1answer
53 views

Getting error while creating reduction order programmatically

I am trying to create a reduction order for an already created order. Though reduction order is being created successfully, it is returning this error: Refund Order Error: field integrity exception:...
1
vote
1answer
64 views

Do Maps have an Reliable Relationship between keySet() order and values() order?

Let's say I have a map, for example: Map<SObjectField, SObjectField> valueByKeyMap Assuming neither the Map nor its contents are mutated by other activity in the system, can I rely on these ...
1
vote
1answer
37 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 ...
0
votes
0answers
12 views

What is the use case of Order where product is not necessary?

Salesforce allows order creation without adding any product into it(product can be added later). I am unable to get a real life example where we create an order without adding any product/service/...
1
vote
2answers
483 views

Get a basket instance for a profile in SFCC

Is it possible to get a basket instance for a profile in SFCC? Here are my intentions: I have a job with the step which does the following: CustomerMgr.processProfiles(sendEmailIfNecessary, ""); i.e....
0
votes
1answer
62 views

get Sales Order Line on Rest API

I created some Sales Orders and Sales Oredr Line on Sainbox. I get Sales Order on Rest API (https://cs20.salesforce.com/services/data/v45.0/sobjects/Sales_Order__c/a1Jm0000001u5ttEAA) - return Sales ...
1
vote
1answer
140 views

Marketing Cloud SQL ORDER BY not working

I am at the Parent Enterprise Level and trying to sort the SubscriberKey column from the All Subscribers List into a Target Data Extension: All_Subscribers_DE. The columns are populated but the ORDER ...
1
vote
0answers
73 views

Order Status Category Field is required but not creatable

The standard Order object has a Status picklist field defined as follows: Picklist of values that indicate order status. Each value is within one of two status categories defined in StatusCode. ...
0
votes
1answer
60 views

pricebook lookup field is not autopopulating

I have a opportunity object and a pricebook lookup field on that object. I have a create order button on opportunity object when I clicked the button the detail page should be open and pricbook lookup ...
4
votes
1answer
85 views

Proper way to make Contract-Order, force 1-1 relationship

I'm looking out for a way to make the relationship between Order and Contract, 1-1, The relationship between both, is optional, but still, I'm unsure if I need to add a custom field to Contract that ...
1
vote
2answers
97 views

How do I activate an order in Lightning?

When I try to activate an order in Lightning I get the error "Can't activate the order. Make sure the status field has an Activated picklist value and try again": There are two statuses identified ...
0
votes
1answer
17 views

Is it possible to get a value with a formulafield fro product to Order Product

I have a external id value on product which I want to put on the Order Product object. Is this possible with a formula field?
0
votes
1answer
789 views

Order: Create a new Status Category

I am creating a new Status type for the Order object. However it's asking me to select a "Status Category" and the options listed there are "Draft" and "Activated". Is there a way to create a new ...
1
vote
1answer
420 views

Custom (re)ordering of legend/bar segments in Einstein Analytics

Question: Currently I can sort bar segments of a stacked column chart in asc/desc order or keep it unsorted. However I would like to sort them in a custom fashion like in the image. How to do it with ...
0
votes
1answer
36 views

How to prefill UnitPrice on Order Products

I want my Order Product price to prefill based on the price defined on the Pricebook Entry. I swear I've seen this work in the past, but I can't figure out why this time I keep getting an empty field ...
6
votes
2answers
214 views

SOQL with ORDER BY and NULLS LAST ASC return wrong order results when we order by field from relationship

I noticed that SOQL with ORDER BY and NULLS LAST ASC returns results in wrong order (especially when I order by field from relationship). I wonder if it is some kind of bug or I've done some mistake ...
0
votes
1answer
27 views

New Customer Additions Reporting

We currently use Salesforce to track our customers (Accounts Object) and the orders (Orders Object) they place with us. I am trying to determine how I can create a report that would show me new ...
2
votes
2answers
923 views

How to set the status on Order to “Activated” in Test Code

I am trying to create an order in my test code and set its Status field to "Activated". However I get FAILED_ACTIVATION, Choose a valid status and save your changes. For a new or cloned order, choose ...
0
votes
1answer
184 views

Iteration Order in Ordered List

I have an ordered list of a custom object which is the child of a different object. I want to get the earliest date of the child object per parent object. Here is a basic example: List<objB__c> ...
0
votes
1answer
179 views

How to get OrderItems data in a Lightning component?

I have a Lightning component that operates on the Order detail page as a Lightning action. It retrieves the data for the current Order like so: <force:recordData aura:id="recordLoader" recordId="...
0
votes
2answers
222 views

Order Product Validation Rule

Is it possible to add a Validation Rule to Orders which checks a certain product name has been added to the order? Basically the price book includes products a, b and c. If the user selects a ...
1
vote
1answer
238 views

Lightning Ready? Delete multiple Quote line items at a time?

Lightning Ready? On Quote line items, is there a way to create a checkbox that goes next to each line item, in order to delete multiple lines at a time? Is there a way to add checkboxes next to each ...
0
votes
1answer
325 views

How to filter the products that can be added to an Order?

Begining to look at Orders and Products and I have a very basic question: How can you filter the Products that are available on an Order? All of our accounts can create an order, we have various ...
0
votes
0answers
463 views

Substitute for apex:repeat

I am creating a table of values that need to be displayed in a specific order. My values are pulled from a map in an apex:repeat and I just discovered that apex:repeat defines the order for you. My ...
0
votes
1answer
117 views

Update date field based on picklist value

Assume when the status is 'hot' on order object. After 30th day the order will be deleted. Is it possible to create formula field as date. When ischange status is hot the formula field value update ...
2
votes
1answer
26 views

How to check values from child object

I was wondering what would be the most efficient way to do the following. The Account object is the parent of the Order object. The Order object has a field called 'Status'. The Status field, a ...
0
votes
1answer
254 views

How to retrive second created opportunity on account

I have requirement like we have existing opportunities are there. For some accounts we have multiple opportunities are there. And we had a requirement like some accounts have first opportunity had "...
2
votes
0answers
323 views

OrderItem does not have ListPrice set in test, contrary to non-test

This is something I've run into and worked around, but it still annoys me because I have to write test specific things in my non-test code (and can't get to 100% coverage because of it). I can find ...
1
vote
2answers
325 views

OrderItem doesn't have a recordtype, so how can use different page layouts depending on Order rectype?

I have different recordtypes for the Order object, and the line items (OrderItem) need to show different fields depending on the Order recordtype, yet I can't seem to do this. It allows me to create ...
3
votes
1answer
1k views

Using the REST api to create parent and child records in a single http request

I know that it is possible to insert Orders and Order Products together with a single HTTP request: Salesforce Place Order REST api p23 But when trying the same basic thing with Opportunities, I'm ...
4
votes
1answer
94 views

The picklist field in the VF form is not showing up in the Confirmation page and getting inserted incorrectly in Order Detail page

I have developed a VF page form for our customer to place order through form, Here we have a option for them to selcect the First and Second reminder day and time . Please find the apex logic: ...
0
votes
1answer
74 views

OrderItem Creation via Enterprise wsdl call

I am trying to create via Enterprise WSDL create call an OrderItem record related to an order. As per image below, inside my call i pass the OrderID, the PriceBook ID, Quantity and Line Description, ...
1
vote
1answer
85 views

Distribution of Salesforce Platform License for AppExchange App

We currently started selling an app through the AppExchange and I couldn't find any information as to what needs to be done in order to get Salesforce Platform Licenses. My understanding is that when ...
3
votes
2answers
103 views

Deduct from Record(s) on a “First in, First Out” Basis when multiple records created simultaneously - How does SOQL handle this with ORDER BY?

Background: My business performs remote training appointments with our customers, and they can be scheduled in any increment of 15 minutes. We track/deduct minutes from a lump-sum field on the ...
0
votes
2answers
67 views

how restrict access for object in communities

I have created a community where i need to restrict the access for Order object. I have created permission set and given "Order" object access : read and edit Also, selected permission set in ...
0
votes
0answers
47 views

Products to opportunities, and the SortOrder field

While adding products to an opportunity in Salesforce, you can not specify the values for the 'SortOrder' field on Opportunity Line Items. That is very weird, and is a feature requested more than 7 ...
0
votes
2answers
381 views

How can I Export from a report the record counts of Contacts, orders etc per account?

I have a giant spreadsheet with all our key accounts etc and we need to find out how many orders per account, how many contacts per account. On SF reports I can add a "Record Count" formula but when ...
1
vote
1answer
115 views

Best cheap Salesforce License for users with access order object only needed [closed]

We have more number of users consider 100 users or more. The user which will use only standard order object record. Now if we buy Salesforce license it will cost too much per month/user. So, is ...
2
votes
1answer
121 views

ToolingAPI bug? Dev Console only: No such column 'PoNumber' on entity 'Order'

According to the Docs for the standard Order Object, PoNumber is a valid field on the object. I have a query that references that field in an Apex class, and the class compiles, and the unit tests ...
5
votes
4answers
1k views

Reverse the order of map in Apex or VF

How can I loop through a Map or List in reverse order in VF? or Can I reverse the order of a map in Apex? Here is my code: String nsp = PackageUtils.namespacePrefix; Map<String, String&...
0
votes
1answer
590 views

Confused about OrderProducts, OrderItems, and Products when making orders in test class

I'm making a test class that creates 5 orders and upon insert, I get the error that you need to add products to orders. I've got... List<Product2> clothProds = [SELECT Id FROM Product2 WHERE ...
0
votes
1answer
584 views

Checked required fields, still getting an error that a required field is missing on Insert

I have the following and get an error on the insert: Order o1 = new Order(Name ='anOrder', Account = test, Status = 'Activated', EffectiveDate = date.today(), Program__c = clothing.id); ...
4
votes
0answers
63 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
1answer
465 views

Orders not visible to Customer Community users

Question in one line is - is there any option to make orders visible to customer community users keeping OWD to Private? Please read below for detailed problem. We have Customer Community User ...