{"title":"Codeunit 30417 Shpfy Product Collection API, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30417-shpfy-product-collection-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":30417,"name":"Shpfy Product Collection API","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30417-shpfy-product-collection-api/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30417-shpfy-product-collection-api/source/","path":"src/Apps/W1/Shopify/App/src/Products/Codeunits/ShpfyProductCollectionAPI.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:30163":{"name":"Shpfy Product Collection","url":"https://jonas-paprotka.de/ref/table/30163-shpfy-product-collection/"}},"procs":[{"name":"RetrieveCustomProductCollectionsFromShopify","line":20,"kind":"procedure","access":"internal","params":1,"steps":[[29,"call","RetrieveCollections",1],[31,"ext","codeunit",30103,"SetShop",1],[35,"ext","codeunit",30103,"ExecuteGraphQL",2],[36,"ext","codeunit",30157,"GetJsonArray",3],[37,"call","ExtractProductCollections",4],[44,"ext","codeunit",30157,"GetValueAsBoolean",2],[46,"call","RemoveNotExistingCollections",1]]},{"name":"RemoveNotExistingCollections","line":62,"kind":"procedure","access":"local","params":1,"steps":[[69,"write",30163,"Delete",1]]},{"name":"ExtractProductCollections","line":73,"kind":"procedure","access":"local","params":4,"steps":[[80,"ext","codeunit",30157,"GetValueAsText",2],[81,"ext","codeunit",30103,"GetIdOfGId",1],[81,"ext","codeunit",30157,"GetValueAsText",2],[84,"validate",30163,"Id"],[85,"write",30163,"Insert",1],[88,"validate",30163,"Name"],[88,"ext","codeunit",30157,"GetValueAsText",2],[89,"validate",30163,"Shop Code"],[90,"write",30163,"Modify",1]]}]}