Questions tagged [order]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 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&...
0
votes
0answers
7 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.
0
votes
0answers
18 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 ...
0
votes
1answer
37 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 ...
0
votes
0answers
12 views

Formula Assistance Needed

Utilizing the below formula on reports showing the calculations for quote lines QL. Herebisbthe problem, when changing prior QL to another products that has pairing products and x referencing the ...
0
votes
0answers
6 views

related products and assets to an inventory

I'm playing around products, assets and contracts. i'm trying to come up with a solution for this scenario: a Sales team sales subscription service with devices (as leased) to customers. When the opps ...
0
votes
1answer
126 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 ...
0
votes
1answer
51 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 ...
3
votes
1answer
41 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: ...
9
votes
1answer
68 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 ...
0
votes
1answer
108 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 ...
0
votes
0answers
75 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" : "...
0
votes
0answers
75 views

Cloudcraze - How to enable Line Level Independence setting for adding multi line items in cart?

I am trying to add cart items for same product/sku in the same cart with different delivery dates and for that I am trying to add them in different cart item groups through api. But when I try to ...
0
votes
0answers
69 views

Display OrderItem currency code before DML

I have a VF component that can show a list of orders with their items. These can be either loaded using SOQL or generated in memory based on some other data. I use <apex:outputField value="{!...
1
vote
1answer
147 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 ...
0
votes
0answers
38 views

How to get the Opportunity split record from Order Object

there is a lookup relationship to the Opportunity object from the Order Object in my org. In every Opportunity there are 2 Opportunity split owners. I need to get the Opportunity Split owner who is ...
0
votes
1answer
114 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. ...
2
votes
1answer
304 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 ...
0
votes
1answer
141 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> ...
0
votes
1answer
95 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 ...
0
votes
1answer
42 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 ...
0
votes
1answer
614 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 ...
0
votes
1answer
260 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 ...
1
vote
0answers
472 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
1k 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
20 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 ...
5
votes
1answer
662 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
271 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
537 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
95 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
112 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
677 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 ...
1
vote
2answers
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....
0
votes
1answer
385 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 ...
2
votes
0answers
793 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
317 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
99 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
102 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
401 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
39 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?
2
votes
1answer
2k 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
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 ...
0
votes
1answer
258 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
645 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
3k 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
319 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
274 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
495 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
483 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 ...