Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [order]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
29 views

Is it possible to change an existing Order Status picklist value's Status Category?

Can I change Test Status' Status Category from Draft to Activated or vice versa?
user avatar
  • 29
0 votes
1 answer
26 views

ListPrice does not fill automatically on Order Products Selection layout

Whenever I add Order Products to an Order, they appear with empty ListPrices on the layout. Meaning that the field shows up but it is always blank. The Parent PriceBook and its entries are activated ...
user avatar
0 votes
0 answers
10 views

OOB Accounts, Contacts, Orders for Business Use Case of Person Accounts

I'm hoping for some feedback on ideas to make the OOB Salesforce functionality work for a business where 'Accounts' are people. I need to make a decision if I am going to use Person Accounts or ...
user avatar
0 votes
1 answer
19 views

how to add product to reductionOrder from apex test class?

I created a testClass that inserts an originalOrder with a product of a quantity : 4. Then, i created a reduction order related to the OriginalOrder. Now, I tried to add product to the reductionOrder ...
user avatar
0 votes
0 answers
25 views

Is there a way to calculate taxes on Orders That come from a connected system?

The Background: We have an org that's connected to an external system (ERP). Some of our orders (due to business requirements) need to be inputted through our external system, then pushed to ...
user avatar
0 votes
1 answer
275 views

Error: Opportunity must have a primary quote in order to create an order.: [] - SBQQ CPQ Test class

I am very new to CPQ, and I am given a test class to write directly. When I try creating order in my test class, I am getting this error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Opportunity must have a ...
user avatar
0 votes
1 answer
312 views

Display record detail of child record in parent record's aura lightning component

I am designing a custom lightning component to display a list of OrderItem records in a tabular format on parent Order record detail page. The requirement is to display the record detail page of an ...
user avatar
0 votes
0 answers
58 views

OCI, Omni Channel Inventory implementation

We have the Flow with a few steps that will implement OCI. We can't figure out with the logic that should 'Find Routes With Fewest Splits' After this out-of-the-box action, we get variable of '...
user avatar
2 votes
1 answer
98 views

AccountName field not accessible on Order object

Not able to use this SOQL in Apex: Order currectOrder = [SELECT AccountNumber, OrderNumber, Type, Status FROM Order WHERE Id =: currentOrderId]; getting error: No such column 'AccountNumber' on ...
user avatar
0 votes
0 answers
16 views

User jumps back to Opportunity after editing a Order Line Item in Sales Console. How to prevent it?

I am wondering is this behavior normal or pertaining to my Salesforce org. Whenever I tried to edit a Order Line Item in Sales Console, it takes me back to the opportunity page. If I need to update ...
user avatar
  • 6,614
-1 votes
1 answer
16 views

Salesforce Lookup Custom Field ID

I am creating an order, using the API. I have a field of type look up for account. Do I have to send an account ID or can I just send an account name? My logic has no way of looking up accounts by ID ...
user avatar
0 votes
1 answer
65 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 ...
user avatar
0 votes
1 answer
61 views

How can I order the Fields of the Custom Settings with Sort() method?

This is the method @AuraEnabled public static list<documentEntity> GetDocumentsInfo(){ try{ List<DocumentType__c> documentList = DocumentType__c.getall().values(); list&...
user avatar
0 votes
0 answers
14 views

CPQ Shipping Account in Order Product not loading

When I create contract from order shipping account field is not automatically loaded in Order Products. Cpq documentation says it inherited from Account how can I solve and diagnose the issue.
user avatar
0 votes
2 answers
41 views

Managing Order journey with reviews

I created a data extension to capture customer data and other data extension to have order details. This data is updated daily. I created an attribute group with below links: Contact key relates to ...
user avatar
0 votes
1 answer
313 views

Custom Text field is not editable in Edit layout

I have added a custom field to the edit layout of the Order Product object, which appears after I click on Add Products button on the Order record page, in the Order products-related list. But I am ...
user avatar
0 votes
1 answer
448 views

What are the actual effects of enabling Enhanced Commerce Order?

I need to enable B2B Commerce on our UAT sandbox for an upcoming deployment. However, this involves enabling "Enable Enhanced Commerce Order" in "Feature Settings > Sales > Order ...
user avatar
0 votes
1 answer
97 views

Is new Order management part of commerce cloud only?

I tried to access Order Management App in my Salesforce org, but I can not see the same. Does it come with commerce cloud only?. If we do not have commerce cloud, can't we access Order management ...
user avatar
3 votes
1 answer
44 views

PROD v Test different: Deleting Accounts with Orders

Salesforce doc states when you delete an Account, its children orders are deleted But: If you do this in an org with a real Account and a draft Order, when you delete the Account, you get this error: ...
user avatar
  • 61.5k
9 votes
1 answer
84 views

Why the Sorting Logic in Salesforce SOQL and UI is VERY different from other Systems?

The ordering mechanisms in Salesforce are really odd. Take any SObject having any Text field (e.g. Name on Account) and create some Records. Do that on an Org with no other Records of the type (e.g. a ...
user avatar
  • 33.6k
0 votes
1 answer
459 views

Using SAQL to place total at bottom of results instead of alphabetically ordered

I have a SAQL Query which takes a list and attempts to display a total row at the bottom. However, the way that my code is written is causing the Total column to be alphabetically rearranged so that ...
user avatar
0 votes
0 answers
110 views

Create Order REST API endpoint returning 'Entity Not Availble' for OrderItem in Sandbox

I'm using the REST API Create Order endpoint (/services/data/v49.0/commerce/sale/order), but when I try and POST to it in my sandbox I get the following: "[ { "errorCode" : "...
user avatar
  • 101
1 vote
1 answer
372 views

Check if "negative quantities" are enabled for Order Item using Apex

In Salesforce, there is a feature in Order Settings called 'Negative Quantities', which allows you to add OrderItems to an order with negative quantities. I am writing a script that syncs orders from ...
user avatar
  • 186
0 votes
1 answer
212 views

[Salesforce CPQ]Lookup to ContractId on Activated Order

I'm trying to update the ContractId field on an Activated Order via process builder on Contract. However, it's throwing me an error  You can't edit Contract Number on activated orders.: Contract ID. ...
user avatar
  • 27
2 votes
1 answer
649 views

Map changing the order of key value pairs in apex

I am creating a map from a string stored in a specific format. But Adding the key-value pairs and later displaying it, I notice the order is not maintained on the map. Is it possible to maintain the ...
user avatar
0 votes
1 answer
313 views

SOQL order when list of ID's passed [duplicate]

I have list of Account ids and when pass the account list to SOQL, what will order of the record return by salesforce? It will be same order where list of id is present ? exmaple : List<ID> ...
user avatar
  • 2,444
0 votes
1 answer
168 views

Order Pricebook2Id to manage with multiple Order Product Pricebooks

Scenario: There are multiple Order Products with different Pricebook(Year wise Pricebook) to be added on Order Object. But, on Order Object we can only set a single Pricebook Id. Can anyone please ...
user avatar
0 votes
1 answer
43 views

Software as a service [closed]

I have a question about the companies that their products based on Software as a service and subscription. If I don't want to use Salesforce CPQ, what other option to create quotes and orders? How ...
user avatar
  • 1
0 votes
1 answer
1k views

Different currencies in PricebookEntry throwing exception FIELD_INTEGRITY_EXCEPTION, PricebookEntryId (must have the same currency as the order)

I wrote a trigger which converts a Quote to Order on changing Status to a particular value. This Quote has QuoteLineItems, hence, they should converted to corresponding OrderItems. Now when the ...
user avatar
0 votes
1 answer
465 views

How to know which Pricebook being chosen for an Order

I am planning to write a lightning web component to check which Pricebook is being used. However my problem is that from the Order, I can trace back to the Contract and from Contract I can have the ...
user avatar
  • 25
1 vote
0 answers
935 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 ...
user avatar
  • 8,312
0 votes
1 answer
2k 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 ...
user avatar
  • 133
1 vote
1 answer
51 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 ...
user avatar
  • 197
5 votes
1 answer
939 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?
user avatar
  • 8,223
1 vote
1 answer
411 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 ...
user avatar
0 votes
1 answer
741 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/...
user avatar
2 votes
1 answer
140 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:...
user avatar
  • 133
1 vote
1 answer
179 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 ...
user avatar
1 vote
1 answer
966 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 ...
user avatar
  • 219
1 vote
2 answers
2k 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....
user avatar
0 votes
1 answer
494 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 ...
user avatar
  • 1
2 votes
1 answer
1k 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 ...
user avatar
2 votes
0 answers
477 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. ...
user avatar
  • 886
0 votes
1 answer
108 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 ...
user avatar
  • 1
4 votes
1 answer
138 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 ...
user avatar
  • 313
1 vote
2 answers
590 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 ...
user avatar
  • 155
0 votes
1 answer
42 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?
user avatar
  • 2,068
2 votes
1 answer
3k 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 ...
user avatar
  • 4,441
1 vote
1 answer
1k 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 ...
user avatar
  • 125
0 votes
1 answer
479 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 ...
user avatar
  • 1,074