Questions tagged [order]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
606 views

How can I store multiple “ship to contact” in Order?

I am trying to create an order management system. Accounts sign a contract with us which can include multiple orders. We ship data to select contacts within the account. I can see that Order has a "...
0
votes
1answer
97 views

Can I used Record ID to determine insert order? Of not what?

We're worried with data volumes that using an AutoNumber may cause overflow problems during the lifetime of the system, so look to the ID as an alternative. (We've been told we may need to scale to a ...
3
votes
1answer
4k views

Default sort order of the records in SOQL [duplicate]

I queried SELECT Id, Name FROM User LIMIT 10 It generates list of 10 users in some order randomly. On what basis does Salesforce give these 10 records? Ordered by CreatedBy ASC? DESC? Name ASC? ...
1
vote
2answers
463 views

How to make a order in salesforce using php

I'm tried to insert or create new order like product and shipping details in salesforce,but i got get the exact table name for create order please help me name of the table i need to use and what ...
4
votes
1answer
581 views

Unable to Override Add Products on Order - Deployment Error

My co-worker overrode the Order Product's (OrderItem) Add Products related list button on the Order with a Visualforce page. He did this in the web UI without any issue. The Visualforce page is an ...
2
votes
1answer
9k views

Problem with Inserting a New Order Item

I am a certified admin and I am just beginning to learn code. I am currently trying to update several Order records to add a new Order Item and update the status on each record. My code worked in our ...
2
votes
2answers
8k views

How can I query Orders to get OrderItems associated with that order

I see that there is a related list on Orders showing the OrderItems but there is not field on orders that I can SOQL query in Apex.
2
votes
1answer
579 views

Is there a predetermined order that Database.SaveResult is returned?

Let's pretend the scenario below: List<Account> acc = new List<Account>{...}; List<Database.SaveResult> results = Database.insert(acc, false); Will the Lists have associated ...
2
votes
3answers
47 views

Order matters database item

Trying to setup a database where it has a table with a bunch of devices, but when displaying the devices order matters. I would need to be able to insert/delete devices in any part of the chain. We ...
3
votes
1answer
265 views

Creating orders from Partner Community

I have a situation here. I have an internal user who creates the partner account. So by default the account owner is the internal user. I want the partner users to be able to access only the one ...
3
votes
1answer
811 views

Activating an Order from a Partner Community User

The functionality that I have to implement is quite simple. Partner Community User creates an order, adds product to the order and activates the order. I am able to achieve the first two without any ...
2
votes
2answers
6k views

Test Code assistance on Orders - System.SObjectException: Field is not writeable: Order.AccountId

I am not sure how to resolve this. With the new Orders Object Salesforce does not give you the option to create a new Order from the Opp. This is a requirement for our org. I have created a custom ...
4
votes
2answers
2k views

Order of records in data load

I have a use case where I need to insert data in salesforce which is being exported from an external system. This data is split over multiple rows, and I need to get those multiple rows into the ...
4
votes
1answer
2k views

Invalid field Pricebook2Id for SObject Order. Can't set Price book for Order

I want to insert the OrderItem object using Order, Pricebook2 and PricebookEntry. I retrieved the standard Pricebook2 and inserted an Order and pricebookentry. At the time of inserting the "OrderItem"...
4
votes
2answers
5k views

Test code for the new standard Order object

The last line insert ordPd causes exception: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, Price Book Not Set on Order: [] All lines before the ...
8
votes
1answer
4k views

Do Workflow actions execute in a certain order or all at once?

Do the following actions occur in a certain order, or do they all fire off at the same time? Email Alerts Tasks Field Updates Outbound Messages

1 2
3