{"title":"Codeunit 30290 Shpfy Catalog API, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30290-shpfy-catalog-api/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-05","object":{"type":"codeunit","id":30290,"name":"Shpfy Catalog API","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30290-shpfy-catalog-api/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30290-shpfy-catalog-api/source/","path":"src/Apps/W1/Shopify/App/src/Catalogs/Codeunits/ShpfyCatalogAPI.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":{"codeunit:30103":{"name":"Shpfy Communication Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/30103-shpfy-communication-mgt/"},"codeunit:30157":{"name":"Shpfy Json Helper","url":"https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/"},"table:30152":{"name":"Shpfy Catalog","url":"https://jonas-paprotka.de/ref/table/30152-shpfy-catalog/"},"codeunit:30154":{"name":"Shpfy GraphQL Queries","url":"https://jonas-paprotka.de/ref/codeunit/30154-shpfy-graphql-queries/"},"table:30153":{"name":"Shpfy Catalog Price","url":"https://jonas-paprotka.de/ref/table/30153-shpfy-catalog-price/"},"codeunit:30161":{"name":"Shpfy Import Order","url":"https://jonas-paprotka.de/ref/codeunit/30161-shpfy-import-order/"},"table:30400":{"name":"Shpfy Market Catalog Relation","url":"https://jonas-paprotka.de/ref/table/30400-shpfy-market-catalog-relation/"},"codeunit:30313":{"name":"Shpfy Skipped Record","url":"https://jonas-paprotka.de/ref/codeunit/30313-shpfy-skipped-record/"}},"procs":[{"name":"CreateCatalog","line":30,"kind":"procedure","access":"internal","params":4,"steps":[[40,"ext","codeunit",30103,"ExecuteGraphQL",2],[41,"ext","codeunit",30103,"GetIdOfGId",1],[41,"ext","codeunit",30157,"GetValueAsText",2],[49,"write",30152,"Insert"],[50,"call","CreatePublication",1],[51,"call","CreatePriceList",1]]},{"name":"CreatePublication","line":60,"kind":"procedure","access":"internal","params":1,"steps":[[66,"ext","codeunit",30103,"ExecuteGraphQL",2]]},{"name":"CreatePriceList","line":69,"kind":"procedure","access":"internal","params":1,"steps":[[83,"ext","codeunit",30103,"ExecuteGraphQL",2]]},{"name":"GetCatalogs","line":86,"kind":"procedure","access":"internal","params":1,"steps":[[96,"ext","codeunit",30103,"ExecuteGraphQL",2],[98,"call","ExtractShopifyCatalogs",3],[106,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"GetMarketCatalogs","line":109,"kind":"procedure","access":"internal","params":0,"steps":[[118,"ext","codeunit",30103,"ExecuteGraphQL",2],[120,"call","ExtractShopifyMarketCatalogs",2],[128,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"GetCatalogPrices","line":131,"kind":"procedure","access":"internal","params":2,"steps":[[139,"call","GetIncludedProductsInCatalog",2],[146,"ext","codeunit",30103,"ExecuteGraphQL",2],[148,"call","ExtractShopifyCatalogPrices",4],[156,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"UpdatePrice","line":194,"kind":"procedure","access":"internal","params":2,"steps":[[199,"ext","codeunit",30154,"GetQueryWithCost",2],[200,"ext","codeunit",30103,"ExecuteGraphQL",2]]},{"name":"UpdatePriceGraphQL","line":203,"kind":"procedure","access":"internal","params":2,"steps":[[209,"ext","codeunit",30154,"GetQueryWithCost",2],[211,"ext","codeunit",30157,"GetJsonArray",2]]},{"name":"ExtractShopifyCatalogPrices","line":214,"kind":"procedure","access":"internal","params":4,"steps":[[220,"ext","codeunit",30157,"GetJsonArray",3],[224,"ext","codeunit",30157,"GetValueAsText",2],[225,"ext","codeunit",30157,"GetJsonObject",3],[226,"ext","codeunit",30103,"GetIdOfGId",1],[226,"ext","codeunit",30157,"GetValueAsText",2],[227,"ext","codeunit",30103,"GetIdOfGId",1],[227,"ext","codeunit",30157,"GetValueAsText",2],[229,"ext","codeunit",30103,"GetIdOfGId",1],[229,"ext","codeunit",30157,"GetValueAsText",2],[230,"ext","codeunit",30157,"GetValueAsCode",2],[231,"ext","codeunit",30157,"GetValueAsDecimal",2],[232,"ext","codeunit",30157,"GetValueAsDecimal",2],[233,"write",30153,"Insert"]]},{"name":"ExtractShopifyCatalogs","line":239,"kind":"procedure","access":"internal","params":3,"steps":[[249,"ext","codeunit",30157,"GetJsonArray",3],[253,"ext","codeunit",30157,"GetValueAsText",2],[254,"ext","codeunit",30157,"GetJsonObject",3],[255,"ext","codeunit",30103,"GetIdOfGId",1],[255,"ext","codeunit",30157,"GetValueAsText",2],[256,"ext","codeunit",30157,"GetValueAsText",2],[265,"write",30152,"Insert",1],[268,"ext","codeunit",30157,"GetValueAsText",2],[269,"ext","codeunit",30161,"TranslateCurrencyCode",1],[270,"write",30152,"Modify",1]]},{"name":"ExtractShopifyMarketCatalogs","line":276,"kind":"procedure","access":"internal","params":2,"steps":[[286,"ext","codeunit",30157,"GetJsonArray",3],[290,"ext","codeunit",30157,"GetValueAsText",2],[291,"ext","codeunit",30157,"GetJsonObject",3],[292,"ext","codeunit",30103,"GetIdOfGId",1],[292,"ext","codeunit",30157,"GetValueAsText",2],[293,"ext","codeunit",30157,"GetValueAsText",2],[300,"write",30152,"Insert",1],[303,"ext","codeunit",30157,"GetValueAsText",2],[304,"ext","codeunit",30161,"TranslateCurrencyCode",1],[305,"write",30152,"Modify",1],[307,"call","GetMarketsLinkedToCatalog",1]]},{"name":"GetMarketsLinkedToCatalog","line":313,"kind":"procedure","access":"internal","params":1,"steps":[[320,"call","ClearCatalogMarketRelations",1],[324,"ext","codeunit",30103,"ExecuteGraphQL",2],[326,"call","ExtractMarketsLinkedToCatalog",3],[334,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"ClearCatalogMarketRelations","line":337,"kind":"procedure","access":"local","params":1,"steps":[[343,"write",30400,"DeleteAll",1]]},{"name":"ExtractMarketsLinkedToCatalog","line":346,"kind":"procedure","access":"local","params":3,"steps":[[354,"ext","codeunit",30157,"GetJsonArray",3],[358,"ext","codeunit",30157,"GetValueAsText",2],[359,"ext","codeunit",30157,"GetJsonObject",3],[360,"ext","codeunit",30103,"GetIdOfGId",1],[360,"ext","codeunit",30157,"GetValueAsText",2],[367,"write",30400,"Insert",1],[370,"ext","codeunit",30157,"GetValueAsText",2],[372,"write",30400,"Modify",1]]},{"name":"GetIncludedProductsInCatalog","line":378,"kind":"procedure","access":"internal","params":2,"steps":[[388,"ext","codeunit",30103,"ExecuteGraphQL",2],[390,"call","ExtractShopifyCatalogProducts",4],[398,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"ExtractShopifyCatalogProducts","line":401,"kind":"procedure","access":"internal","params":4,"steps":[[411,"ext","codeunit",30157,"GetJsonObject",3],[412,"ext","codeunit",30313,"LogSkippedRecord",4],[416,"ext","codeunit",30157,"GetValueAsText",2],[417,"ext","codeunit",30161,"TranslateCurrencyCode",1],[418,"ext","codeunit",30313,"LogSkippedRecord",4],[422,"ext","codeunit",30157,"GetJsonArray",3],[424,"ext","codeunit",30157,"GetValueAsText",2],[425,"ext","codeunit",30157,"GetJsonObject",3],[426,"ext","codeunit",30103,"GetIdOfGId",1],[426,"ext","codeunit",30157,"GetValueAsText",2]]},{"name":"GetCatalogProductsURL","line":434,"kind":"procedure","access":"internal","params":1,"steps":[[440,"call","IsUnifiedMarketsEnabled",1],[443,"call","GetMarketIdForNotUnifiedMarket",1]]},{"name":"IsUnifiedMarketsEnabled","line":447,"kind":"procedure","access":"internal","params":1,"steps":[[451,"ext","codeunit",30103,"SetShop",1],[452,"ext","codeunit",30103,"ExecuteGraphQL",0],[453,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"SetShop","line":466,"kind":"procedure","access":"internal","params":1,"steps":[[469,"ext","codeunit",30103,"SetShop",1]]}]}