Skip to main content

Questions tagged [order]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

Query orders from other sites in Commerce Cloud

We are developing in Commerce Cloud 2 sites, one to be viewed on a desktop browser, and another to be viewed on a webview inside a react-native app. We are using OrderMgr.searchOrders() to fetch the ...
Diogo Gonçalves's user avatar
0 votes
0 answers
64 views

Orders stopped contracting

Our CPQ for Service Cloud is no longer creating contracts after orders are activated/contracted. Just started happening this week. We have a support ticket open, but wondering if anyone else has ...
Damon Betlow's user avatar
-2 votes
1 answer
119 views

Is there a connection between Invoice and Order?

We're working on a Salesforce integration in our product and the requirement if we search for specific order with order Id from a specific account via the API it should return order details, product ...
Akash Vekariya's user avatar
0 votes
0 answers
402 views

Error when querying Salesforce REST API - order object with full query, but works fine with limited results and querying just one field

I'm encountering an issue when performing a REST API query for order object on Salesforce, specifically when using a full query that includes multiple fields. However, the query works perfectly fine ...
Athithya Vidyarth S's user avatar
-1 votes
1 answer
715 views

Is this a known issue - Inactive Picklist Value shows up on a new Order

I have an inactive picklist on the OrderType field on Order. When I create a new Order record from an existing Quote record, then the Order after creation shows 'New' as an Option in the OrderType ...
GroundToCloud's user avatar
-2 votes
1 answer
205 views

Sort Records and Assign Sorting Number - Joint Salutation

I have the following use case: We would like to create a joint letter salutation for the contacts which are related to an account. For example Dear Mr. Smith, Dear Mrs Smith. Because we want to create ...
Jan's user avatar
  • 1
0 votes
1 answer
265 views

Is it possible to fetch Order Info in LWC component?

Currently I'm using the Order Id in a GET request but it's returning a 401 Unauthorized response. I'm trying to some of the following info: the order total, currency code and email address used for ...
Myrriame Dosso's user avatar
0 votes
1 answer
741 views

Is there a way to populate the selected attributes of a product in the Order Product and the Quote Line without using Twin Fields?–Salesforce CPQ

The reason why Twin Fields is not the best solution, in this case, is that we are working in an Org that has more than 500 products, and almost every product has its own set of different attributes. ...
Camila Plazas's user avatar
0 votes
1 answer
1k views

How to delete the ORDERS in salesforce CPQ?

I created ORDERS for a quote and now I need them to be gone from (deleted). The quote is the PRIMARY Quote of the opportunity and it's the only quote we have on the Opportunity. When I'm trying to ...
Tushar Saxena's user avatar
-2 votes
2 answers
292 views

My trigger is not working

I tested by editing my order object and then populating a description when it runs. trigger OrderTrigger1 on Order (before insert) { switch on Trigger.operationType { when BEFORE_UPDATE { ...
FaThima Hussain's user avatar
0 votes
1 answer
250 views

What is the limit (length) of an order's notes?

When I am adding a note to an order. order.addNote('Title of the note', JSON.stringify(result, null, 2)); I am getting this error: Text length 4103 > 4000 I didn't find any explanation for this in ...
LuizEduardoMPF's user avatar
-3 votes
1 answer
1k views

How to ad order items to order [closed]

How do I create an order with orderitems. The following code gives me error - Error CreateSummaryOrder Method does not exist or incorrect signature: void add(OrderItem) from the type Order (67:18) I ...
knay's user avatar
  • 37
0 votes
2 answers
679 views

How to only select orders, where orders contain orderitems

I have this query but it is returning orders where there a no orderitems present, how can i only select orders that have order items in them? SELECT EffectiveDate, Description, id, (select order.id ...
knay's user avatar
  • 37
1 vote
1 answer
504 views

What does "the order product has been reduced" mean?

We have been using Orders and Order Products for about a year in a really fundamental way, just to feed into a custom built Invoice object. It's recurring monthly Invoicing, so the values on the ...
Jerry Woods's user avatar
-1 votes
1 answer
151 views

I need to find orders without order item [closed]

I have lakhs of orders in my org. And it also has its associated order items. So I need to check which orders are not having any of the order items.
Aftab's user avatar
  • 1
0 votes
1 answer
704 views

duplicate alias: name error while grouping

We are using bundle products in salesforce and I am trying to display the Order products in a PDF document which I am creating using VF page. In the Order detail page the Bundle products appear ...
Akshay Vasu's user avatar
0 votes
3 answers
1k 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?
pt_5858's user avatar
  • 73
0 votes
1 answer
144 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 ...
ViniVan's user avatar
0 votes
1 answer
365 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 ...
sabrina's user avatar
0 votes
2 answers
4k 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 ...
Rahul Allada's user avatar
0 votes
1 answer
1k 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 ...
user51241's user avatar
2 votes
1 answer
596 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 ...
Tantlord's user avatar
-1 votes
1 answer
205 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 ...
user1255637's user avatar
0 votes
1 answer
494 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
412 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&...
Willy Kelly's user avatar
0 votes
2 answers
154 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 ...
Sanket kharwade's user avatar
0 votes
1 answer
1k 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 ...
Akshay Vasu's user avatar
0 votes
1 answer
1k 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 ...
Jerard Dela Victoria's user avatar
0 votes
1 answer
395 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 ...
Deepak Garg's user avatar
3 votes
1 answer
89 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: ...
cropredy's user avatar
  • 72.1k
5 votes
1 answer
204 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 ...
Uwe Heim's user avatar
  • 28.4k
0 votes
1 answer
1k 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 ...
Scott B's user avatar
  • 27
0 votes
0 answers
332 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" : "...
te_chris's user avatar
  • 101
1 vote
1 answer
912 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 ...
Rai's user avatar
  • 326
0 votes
1 answer
671 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. ...
sfdc's user avatar
  • 27
2 votes
1 answer
1k 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 ...
Pankaj Andhale's user avatar
0 votes
1 answer
872 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> ...
NITHESH K's user avatar
  • 2,535
0 votes
1 answer
347 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 ...
Jahnvi Jasani's user avatar
0 votes
1 answer
49 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 ...
Arash's user avatar
  • 1
0 votes
1 answer
3k 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 ...
Nilang Pandey's user avatar
0 votes
1 answer
1k 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 ...
Minh's user avatar
  • 25
1 vote
0 answers
2k 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 ...
javanoob's user avatar
  • 8,907
0 votes
1 answer
3k 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 ...
Anant's user avatar
  • 133
1 vote
1 answer
365 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 ...
Shinya's user avatar
  • 507
5 votes
1 answer
2k 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?
Robs's user avatar
  • 9,396
1 vote
1 answer
924 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 ...
Sergei Wallace's user avatar
0 votes
1 answer
2k 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/...
user2828669's user avatar
2 votes
1 answer
255 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:...
Anant's user avatar
  • 133
1 vote
1 answer
343 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 ...
Brian Kessler'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
  • 229