Changed on:
29 Nov 2023
Checks if a Virtual Position does not exist, if the Virtual Position does not exist it will create a new Virtual Position with the matching attributes
Plugin Name | Inventory Reference Module |
---|---|
Namespace | [[account.id]].globalinventory |
The Inventory Reference Module is the foundation for inventory related implementations. It provides reference Workflows for inventory ingestion and processing. Extensible by design, use this Module as a base to build a solution to the needs of your customers.
The Inventory Module includes the following areas:
Checks if a Virtual Position does not exist, if the Virtual Position does not exist it will create a new Virtual Position with the matching attributes
Not required for this rule
Parameter | Description | Data Type | Required? |
productRef | The product ref of this virtual position | String | Required |
locationRef | The location ref of this virtual position | String | Required |
`locationRef`
`productRef`
1{
2 "name": "{{AccountID}}.globalinventory.CreateBaseVirtualPositionIfNotPresent"
3}
Language: json
`locationRef`
`productRef`
`virtualCatalogueRef`
`virtualCatalogueRef`
`final String targetVirtualPositionRef = String.join(COLON, productRef, locationRef, BASE);`
`virtualService.getVirtualPositionAndVirtualCatalogueByRef(virtualCatalogueRef, targetVirtualPositionRef)`
The result of the above call can be examined to determine whether a virtual position exist or not
`virtualService.createVirtualPosition`
`UpdateBaseVirtualPosition`
refers to plugin
Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.