{"title":"Codeunit 30372 Shpfy Sales Channel API, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-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":30372,"name":"Shpfy Sales Channel API","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/","path":"src/Apps/W1/Shopify/App/src/Products/Codeunits/ShpfySalesChannelAPI.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:30160":{"name":"Shpfy Sales Channel","url":"https://jonas-paprotka.de/ref/table/30160-shpfy-sales-channel/"}},"procs":[{"name":"RetrieveSalesChannelsFromShopify","line":23,"kind":"procedure","access":"internal","params":1,"steps":[[32,"call","CollectChannels",1],[34,"ext","codeunit",30103,"SetShop",1],[38,"ext","codeunit",30103,"ExecuteGraphQL",2],[39,"ext","codeunit",30157,"GetJsonArray",3],[40,"call","ExtractSalesChannels",4],[47,"ext","codeunit",30157,"GetValueAsBoolean",2],[49,"call","RemoveNotExistingChannels",1]]},{"name":"RemoveNotExistingChannels","line":65,"kind":"procedure","access":"local","params":1,"steps":[[72,"write",30160,"Delete",1]]},{"name":"ExtractSalesChannels","line":76,"kind":"procedure","access":"local","params":4,"steps":[[86,"ext","codeunit",30157,"GetValueAsText",2],[87,"ext","codeunit",30103,"GetIdOfGId",1],[87,"ext","codeunit",30157,"GetValueAsText",2],[90,"validate",30160,"Id"],[91,"ext","codeunit",30157,"GetJsonArray",2],[93,"validate",30160,"Name"],[93,"ext","codeunit",30157,"GetValueAsText",2],[94,"ext","codeunit",30157,"GetValueAsText",2],[98,"write",30160,"Insert",1]]}]}