You are here:
Create Reservation Action
In Omnichannel Inventory, create one or more inventory reservations at a location or location group.
Required Editions
| Available in: Lightning Experience |
| View supported editions. |
| This feature requires the Salesforce Omnichannel Inventory add-on. To purchase, contact your Salesforce account executive. |
In Flow Builder, add an Action element to your flow. Select the Omnichannel Inventory Service category, and search for Omnichannel Inventory Service Create Reservation.
Set Input Values
Use values from earlier in the flow to set the inputs.
| Input Parameter | Description |
|---|---|
| Omnichannel Inventory Create Service Reservation Input | This input is an Apex-defined variable of class ConnectApi.OCICreateReservationInputRepresentation. The variable has these fields.
|
Store Output Values
| Output Parameter | Description |
|---|---|
| Omnichannel Inventory Service Create Reservation Output | This value is an Apex-defined variable of class ConnectApi.OCICreateReservationOutputRepresentation. The variable has these fields.
|
To set up the Omnichannel Inventory Create Service Reservation Input:
- For each product to reserve, use Assignment elements to set the locationGroupIdentifier or locationIdentifier field, quantity field, and stockKeepingUnit field values on a ConnectApi.OCICreateReservationSingleInputRepresentation variable.
- Use Assignment elements to add the ConnectApi.OCICreateReservationSingleInputRepresentation variables to the createRecords field on a ConnectApi.OCICreateReservationInputRepresentation variable.
- Use Assignment elements to set the actionRequestId, allowPartialReservations, expirationSeconds, externalRefId, and reservationTime field values on the ConnectApi.OCICreateReservationInputRepresentation variable.
- Use the ConnectApi.OCICreateReservationInputRepresentation variable in the action input.

