Enhance Shopify Inventory Integration with Improved Inventory Sync Controls#6396
Conversation
… Variant ID filter in Sync Inventory report
|
@microsoft-github-policy-service agree |
|
Re-triggering CI. |
|
@TengingBCDevelopers there are compilation errors: Compilation started for project 'Shopify Connector' containing '638' files at '14:54:39.103'. Error: PTE0008 Field 'SkipImport' must have a value for the ApplicationArea property so that they are visible to users. From runtime 11.0, you can specify on the application object level the ApplicationArea to use as default for all its controls and actions. |
7aac8ae
Thank you for reporting this. |
|
@TengingBCDevelopers there are now compilation errors on tests: Compilation started for project 'Shopify Connector Test' containing '91' files at '13:25:00.819'. Error: AL0135 There is no argument given that corresponds to the required formal parameter 'ForceExport' of 'ExportStock(var Record "Shpfy Shop Inventory", Boolean)' I understand if you couldn't test the changes since it requires setting up authentication to Shopify, but you should at least compile the app and the test app. |
Sorry about that — my mistake. I compiled the main app but missed the test app. I’ve added an overloaded procedure to fix the test app errors. |
…e test cases for consistency
Description
The current Shopify inventory synchronization always performs a full inventory import before exporting stock and does not allow filtering products or skipping the import step.
For customers with large Shopify catalogs, this results in long-running synchronization jobs even when only a small subset of inventory needs to be exported from Business Central.
Business scenario
Customers using shared inventory require inventory to be exported to Shopify after posting Business Central orders, without re-importing all inventory data. Today, the only option is to run a full synchronization, which can take several hours.
Request
Extend the Shopify inventory synchronization to provide more control over import and export behavior.
Requested changes
o Add request page options:
´éº Skip Import Stock (Boolean)
´éº Variant ID Filter (Text)
o Pass the Skip Import and Variant ID Filter options to the Inventory API
o Skip inventory import when requested
o Skip inventory import when requested
o Support forced inventory export
o Limit synchronization scope by Variant ID
Benefits
ÔÇó Improved performance for large Shopify stores
ÔÇó Reduced synchronization time and API usage
ÔÇó More flexible and scalable inventory synchronization
Summary
This change enables filtering, skipping unnecessary import steps, and forcing inventory exports, improving performance and flexibility while remaining backward compatible.
Work Item(s)
Fixes #6395
Fixes AB#624236