{"title":"Codeunit 30185 Shpfy Sync Products, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30185-shpfy-sync-products/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-28","object":{"type":"codeunit","id":30185,"name":"Shpfy Sync Products","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30185-shpfy-sync-products/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30185-shpfy-sync-products/source/","path":"src/Apps/W1/Shopify/App/src/Products/Codeunits/ShpfySyncProducts.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:30102":{"name":"Shpfy Shop","url":"https://jonas-paprotka.de/ref/table/30102-shpfy-shop/"},"codeunit:30178":{"name":"Shpfy Product Export","url":"https://jonas-paprotka.de/ref/codeunit/30178-shpfy-product-export/"},"codeunit:30176":{"name":"Shpfy Product API","url":"https://jonas-paprotka.de/ref/codeunit/30176-shpfy-product-api/"},"table:30127":{"name":"Shpfy Product","url":"https://jonas-paprotka.de/ref/table/30127-shpfy-product/"},"codeunit:30180":{"name":"Shpfy Product Import","url":"https://jonas-paprotka.de/ref/codeunit/30180-shpfy-product-import/"},"page:30144":{"name":"Shpfy Add Item Confirm","url":"https://jonas-paprotka.de/ref/page/30144-shpfy-add-item-confirm/"},"codeunit:30174":{"name":"Shpfy Create Product","url":"https://jonas-paprotka.de/ref/codeunit/30174-shpfy-create-product/"},"codeunit:30101":{"name":"Shpfy Background Syncs","url":"https://jonas-paprotka.de/ref/codeunit/30101-shpfy-background-syncs/"},"report:30106":{"name":"Shpfy Add Item to Shopify","url":"https://jonas-paprotka.de/ref/report/30106-shpfy-add-item-to-shopify/"}},"procs":[{"name":"OnRun","line":18,"kind":"trigger","steps":[[22,"call","SetShop",1],[25,"call","ExportItemsToShopify",0],[29,"call","ExportItemsToShopify",0],[32,"call","ImportProductsFromShopify",0],[34,"ext","table",30102,"SetLastSyncTime",2]]},{"name":"ExportItemsToShopify","line":55,"kind":"procedure","access":"local","params":0,"steps":[[58,"ext","codeunit",30178,"SetOnlyUpdatePriceOn",0],[59,"run","codeunit",30178]]},{"name":"ImportProductsFromShopify","line":65,"kind":"procedure","access":"local","params":0,"steps":[[78,"ext","codeunit",30176,"RetrieveShopifyProductIds",2],[89,"write",30127,"Insert"],[94,"write",30127,"Insert"],[102,"ext","codeunit",30180,"SetShop",1],[104,"ext","codeunit",30180,"SetProduct",1],[107,"run","codeunit",30180]]},{"name":"SetShop","line":133,"kind":"procedure","access":"internal","params":1,"steps":[[137,"ext","codeunit",30176,"SetShop",1],[138,"ext","codeunit",30180,"SetShop",1],[139,"ext","codeunit",30178,"SetShop",1]]},{"name":"ConfirmAddItemToShopify","line":186,"kind":"procedure","access":"internal","params":2,"steps":[[197,"ext","page",30144,"SetItemDescription",1],[198,"ext","page",30144,"SetShopCode",1],[199,"ext","page",30144,"SetIsActive",1],[220,"ext","page",30144,"SetItemDescription",1],[221,"ext","page",30144,"SetShopCode",1],[222,"ext","page",30144,"SetIsActive",1]]},{"name":"AddItemToShopify","line":235,"kind":"procedure","access":"internal","params":2,"steps":[[246,"ext","codeunit",30174,"SetShop",1],[247,"run","codeunit",30174],[251,"ext","codeunit",30101,"ProductImagesSync",2],[251,"ext","codeunit",30174,"GetProductId",0],[257,"ext","codeunit",30101,"InventorySync",1]]},{"name":"AddItemsToShopify","line":260,"kind":"procedure","access":"internal","params":1,"steps":[[264,"ext","report",30106,"SetShop",1]]},{"name":"AddItemsToShopifyNotification","line":268,"kind":"procedure","params":1,"steps":[[270,"call","AddItemsToShopify",1]]},{"name":"SyncProductsNotification","line":273,"kind":"procedure","params":1,"steps":[[277,"ext","codeunit",30101,"ProductsSync",1]]}]}