{"title":"Codeunit 30107 Shpfy Sync Countries, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30107-shpfy-sync-countries/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":30107,"name":"Shpfy Sync Countries","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30107-shpfy-sync-countries/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30107-shpfy-sync-countries/source/","path":"src/Apps/W1/Shopify/App/src/Customers/Codeunits/ShpfySyncCountries.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/"},"table:30107":{"name":"Shpfy Customer Template","url":"https://jonas-paprotka.de/ref/table/30107-shpfy-customer-template/"},"codeunit:30157":{"name":"Shpfy Json Helper","url":"https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/"},"table:30109":{"name":"Shpfy Tax Area","url":"https://jonas-paprotka.de/ref/table/30109-shpfy-tax-area/"}},"procs":[{"name":"OnRun","line":16,"kind":"trigger","steps":[[19,"ext","codeunit",30103,"SetShop",1],[20,"call","GetCountries",0],[21,"call","SyncCountries",0]]},{"name":"SyncCountries","line":31,"kind":"procedure","access":"local","params":0,"steps":[[41,"write",30107,"DeleteAll",1],[44,"ext","codeunit",30103,"ExecuteGraphQL",1],[45,"ext","codeunit",30157,"GetJsonArray",3],[47,"call","ImportCountry",1]]},{"name":"ImportCountry","line":50,"kind":"procedure","access":"local","params":1,"steps":[[61,"write",30107,"Insert"],[62,"call","ImportProvince",1]]},{"name":"ImportProvince","line":66,"kind":"procedure","access":"local","params":1,"steps":[[74,"ext","codeunit",30157,"GetValueAsCode",2],[75,"ext","codeunit",30157,"GetJsonArray",3],[79,"ext","codeunit",30157,"GetValueAsText",2],[80,"ext","codeunit",30157,"GetValueAsText",2],[84,"write",30109,"Insert"]]},{"name":"GetCountries","line":90,"kind":"procedure","access":"local","params":0,"steps":[[103,"ext","codeunit",30157,"GetJsonArray",2]]}]}