Export Unmanaged Order Summaries with Data Loader
Export your B2B Commerce order summary data out of Salesforce using Data Loader.
-
Log in to Data Loader.
-
Select Export.
-
Enter the credentials for the org where your B2B order summaries are.
-
Under Select Salesforce Object, select an order summary or a related summary object.
-
For the extraction target, enter the name of your output CSV file and click Next.
-
On the Edit Your Query page, select the fields that you want to export, and under Fields, select the ID that you want to export from.
-
Add the
OrderLifeCycleType = 'UNMANAGED'
clause. This clause is required if you want to limit your export to B2B Commerce order summaries. -
To edit or create a Where statement when querying data from a summary object rather than an order summary, include the
OrderSummaryId
. -
When you export data periodically, use the
CreatedDate
field with the SOQL supported values. For example,CreatedDate < LAST_90_DAYS
.Data Loader generates a query that you can edit.
-
Click Finish and view the extracted results.
These example queries illustrate how you can export data from order summaries.
Object | Example Query |
---|---|
OrderSummary | Select Id, CreatedDate, OrderNumber, OrderedDate, OwnerId, Status, TotalAmount, FROM OrderSummary WHERE SalesStoreId = '0ZER00000004Kos' AND OrderLifeCycleType = 'UNMANAGED' |
OrderItemSummary | Select Id, CreatedDate, Product2Id, ProductCode, Quantity, Status, Type, UnitPrice FROM OrderItemSummary WHERE OrderSummaryId IN ('1OsR000000002K7KAI') |
OrderItemAdjustmentLineSummary | Select Id, Amount, CreatedDate, TotalTaxAmount FROM OrderItemAdjustmentLineSummary WHERE OrderSummaryId IN ('1OsR000000002K7KAI') |
OrderItemTaxLineItemSummary | Select Id, Amount, CreatedDate, Rate, Type FROM OrderItemTaxLineItemSummary WHERE OrderSummaryId IN ('1OsR000000002K7KAI') |
OrderAdjustmentGroupSummary | Select Id, CreatedDate, TotalAmount, TotalTaxAmount, Type FROM OrderAdjustmentGroupSummary WHERE OrderSummaryId IN ('1OsR000000002K7KAI') |
OrderDeliveryGroupSummary | Select Id, CreatedDate, DeliverToCity, DeliverToCountry, EmailAddress, PhoneNumber, TotalAmount FROM OrderDeliveryGroupSummary WHERE OrderSummaryId IN ('1OsR000000002K7KAI') |
OrderItemSummaryChange | Select Id, ChangeOrderItemId, ChangeType, OrderItemSummaryId, Reason FROM OrderItemSummaryChange WHERE OrderSummaryId IN ('1OsR000000002K7KAI') |
OrderPaymentSummary | Select Id, CreatedDate, FullName, AuthorizationAmount OwnerId, PaymentMethodId, RefundedAmount, Type FROM OrderPaymentSummary WHERE OrderSummaryId IN ('1OsR000000002K7KAI') |