Hi everyone,
I’m trying to add a product to an existing Order Summary in Salesforce Order Management using the Add Order Item Summary Flow action, but I keep getting a generic error with no useful detail.
Here’s what I already verified:
- The Order Summary already exists for the order.
- I can see an existing OrderItemSummary on the same order.
- I’m passing:
- OrderSummaryId
- OrderDeliveryGroupSummaryId
- Product2Id
- PricebookEntryId
- Quantity
- UnitPrice
- TotalLineAmount
- Reason
- Type
The values I’m using are valid picklist/API values in my org, and the flow interview shows the payload being built correctly, but the action still fails with:
I also checked that the order is not being blocked by the summary creation process, and I’m working on a test order with existing Order Summary data.
Has anyone successfully used Add Order Item Summary
in Flow?
Are there any hidden prerequisites, special field requirements, or order status constraints that could cause this generic failure?
Any advice or examples would be really appreciated.
Thanks!
I would recommend checking the following points:
- Make sure you are passing record variables to the Add Order Item Summary action rather than passing individual record IDs or existing records directly.
- Verify that the Order Item Summary record variable includes all required fields, especially Name, Type, and TypeCode, along with the correct OrderSummaryId and OrderDeliveryGroupSummaryId.
- Confirm that the Product2Id and PricebookEntryId correspond to the intended product and price book entry.
- Check that the Reason value is valid and that the UnitPrice, Quantity, and TotalLineAmount values are consistent.
- Verify that your user has the required permission to use the Add Order Item Summary action. Also, confirm that the order can accept the requested change under its current lifecycle status.
- If the action still fails, check the Flow error details and debug logs to identify the underlying exception.
Salesforce documentation:
https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_om_actions_add_ois.htmI hope this helps! If you find this answer helpful, please select it as the Best Answer.
Thanks,
Deepak Sachdeva
Nubys Tech. Pvt. Ltd.