{"title":"Codeunit 30198 Shpfy Sync Shop Locations, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30198-shpfy-sync-shop-locations/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":30198,"name":"Shpfy Sync Shop Locations","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30198-shpfy-sync-shop-locations/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30198-shpfy-sync-shop-locations/source/","path":"src/Apps/W1/Shopify/App/src/Inventory/Codeunits/ShpfySyncShopLocations.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:30113":{"name":"Shpfy Shop Location","url":"https://jonas-paprotka.de/ref/table/30113-shpfy-shop-location/"}},"procs":[{"name":"OnRun","line":16,"kind":"trigger","steps":[[19,"ext","codeunit",30103,"SetShop",1],[20,"call","SyncLocations",0],[21,"call","UpdateFulfillmentServiceCallbackUrl",0]]},{"name":"ImportLocation","line":36,"kind":"procedure","access":"internal","params":2,"steps":[[43,"ext","codeunit",30157,"GetJsonValue",3],[51,"ext","codeunit",30157,"GetValueAsText",3],[53,"ext","codeunit",30157,"GetValueAsBoolean",2],[54,"ext","codeunit",30157,"GetValueAsBoolean",2],[55,"ext","codeunit",30157,"GetJsonToken",2],[58,"ext","codeunit",30103,"GetIdOfGId",1],[58,"ext","codeunit",30157,"GetValueAsText",2],[59,"ext","codeunit",30157,"GetValueAsText",2],[62,"write",30113,"Insert"],[64,"write",30113,"Modify"],[66,"write",30113,"Delete"]]},{"name":"SyncLocations","line":74,"kind":"procedure","access":"internal","params":0,"steps":[[89,"write",30113,"Insert"],[94,"ext","codeunit",30103,"ExecuteGraphQL",2],[96,"ext","codeunit",30157,"GetJsonObject",3],[97,"ext","codeunit",30157,"GetValueAsText",2],[103,"ext","codeunit",30157,"GetJsonArray",2],[104,"call","ImportLocation",2],[106,"call","HasNextResults",1],[111,"write",30113,"Delete",1]]},{"name":"UpdateFulfillmentServiceCallbackUrl","line":115,"kind":"procedure","access":"internal","params":0,"steps":[[125,"call","GetFulfillmentServiceName",0],[130,"call","GetFulfillmentService",1],[135,"call","GetFulfillmentServiceCallbackUrl",0],[140,"call","GetFulfillmentServiceCallbackUrl",0],[141,"ext","codeunit",30103,"ExecuteGraphQL",2],[143,"ext","codeunit",30157,"GetJsonValue",3],[145,"write",30113,"Modify"]]},{"name":"GetFulfillmentService","line":149,"kind":"procedure","access":"local","params":1,"steps":[[159,"ext","codeunit",30103,"ExecuteGraphQL",2],[161,"ext","codeunit",30157,"GetJsonObject",3],[162,"write",30113,"Delete",1],[166,"ext","codeunit",30157,"GetJsonObject",3],[169,"ext","codeunit",30103,"GetIdOfGId",1],[169,"ext","codeunit",30157,"GetValueAsText",2],[170,"ext","codeunit",30157,"GetValueAsText",2],[171,"write",30113,"Modify"]]},{"name":"HasNextResults","line":174,"kind":"procedure","access":"local","params":1,"steps":[[176,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"SetShop","line":179,"kind":"procedure","access":"internal","params":1,"steps":[[182,"ext","codeunit",30103,"SetShop",1]]}]}