{"title":"Codeunit 30238 Shpfy Fulfillment Orders API, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30238-shpfy-fulfillment-orders-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":30238,"name":"Shpfy Fulfillment Orders API","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30238-shpfy-fulfillment-orders-api/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30238-shpfy-fulfillment-orders-api/source/","path":"src/Apps/W1/Shopify/App/src/Order Fulfillments/Codeunits/ShpfyFulfillmentOrdersAPI.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:30198":{"name":"Shpfy Sync Shop Locations","url":"https://jonas-paprotka.de/ref/codeunit/30198-shpfy-sync-shop-locations/"},"table:30102":{"name":"Shpfy Shop","url":"https://jonas-paprotka.de/ref/table/30102-shpfy-shop/"},"codeunit:30157":{"name":"Shpfy Json Helper","url":"https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/"},"table:30143":{"name":"Shpfy FulFillment Order Header","url":"https://jonas-paprotka.de/ref/table/30143-shpfy-fulfillment-order-header/"},"table:30114":{"name":"Shpfy Data Capture","url":"https://jonas-paprotka.de/ref/table/30114-shpfy-data-capture/"},"table:30144":{"name":"Shpfy FulFillment Order Line","url":"https://jonas-paprotka.de/ref/table/30144-shpfy-fulfillment-order-line/"}},"procs":[{"name":"RegisterFulfillmentService","line":16,"kind":"procedure","access":"internal","params":1,"steps":[[22,"ext","codeunit",30103,"SetShop",1],[23,"ext","codeunit",30198,"GetFulfillmentServiceName",0],[24,"ext","codeunit",30198,"GetFulfillmentServiceCallbackUrl",0],[26,"ext","codeunit",30103,"ExecuteGraphQL",2],[29,"write",30102,"Modify"]]},{"name":"GetFulFillmentOrderLines","line":32,"kind":"procedure","access":"internal","params":2,"steps":[[38,"ext","codeunit",30103,"SetShop",1],[44,"ext","codeunit",30103,"ExecuteGraphQL",2],[46,"call","ExtractFulfillmentOrderLines",4],[54,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"ExtractFulfillmentOrdersFromOrder","line":58,"kind":"procedure","access":"internal","params":3,"steps":[[64,"ext","codeunit",30157,"GetJsonObject",3],[65,"ext","codeunit",30157,"GetJsonArray",3],[67,"call","ExtractFulfillmentOrder",3]]},{"name":"ExtractFulfillmentOrder","line":73,"kind":"procedure","access":"internal","params":3,"steps":[[80,"ext","codeunit",30157,"GetValueAsText",2],[81,"ext","codeunit",30157,"GetJsonObject",3],[82,"ext","codeunit",30103,"GetIdOfGId",1],[82,"ext","codeunit",30157,"GetValueAsText",2],[85,"ext","codeunit",30157,"GetValueAsDateTime",2],[86,"call","GetFulFillmentOrderLines",2],[94,"ext","codeunit",30157,"GetValueAsBigInteger",2],[95,"ext","codeunit",30157,"GetValueAsBigInteger",2],[96,"ext","codeunit",30157,"GetValueAsDateTime",2],[97,"ext","codeunit",30157,"GetValueAsText",2],[98,"call","ConvertToRequestStatus",1],[98,"ext","codeunit",30157,"GetValueAsText",2],[99,"call","ConvertToDeliveryMethodType",1],[99,"ext","codeunit",30157,"GetValueAsText",2],[100,"write",30143,"Insert"],[101,"write",30143,"Modify"],[102,"ext","table",30114,"Add",3],[103,"call","GetFulFillmentOrderLines",2]]},{"name":"ExtractFulfillmentOrderLines","line":107,"kind":"procedure","access":"internal","params":4,"steps":[[117,"ext","codeunit",30157,"GetJsonArray",3],[119,"ext","codeunit",30157,"GetValueAsText",2],[120,"ext","codeunit",30157,"GetJsonObject",3],[121,"ext","codeunit",30103,"GetIdOfGId",1],[121,"ext","codeunit",30157,"GetValueAsText",2],[129,"ext","codeunit",30103,"GetIdOfGId",1],[129,"ext","codeunit",30157,"GetValueAsText",2],[130,"ext","codeunit",30157,"GetValueAsBigInteger",2],[131,"ext","codeunit",30157,"GetValueAsBigInteger",2],[132,"ext","codeunit",30157,"GetValueAsDecimal",2],[133,"ext","codeunit",30157,"GetValueAsDecimal",2],[135,"write",30144,"Insert"],[147,"ext","codeunit",30103,"GetIdOfGId",1],[147,"ext","codeunit",30157,"GetValueAsText",2],[149,"ext","codeunit",30103,"GetIdOfGId",1],[149,"ext","codeunit",30157,"GetValueAsText",2],[155,"ext","codeunit",30157,"GetValueAsBigInteger",2],[157,"ext","codeunit",30157,"GetValueAsBigInteger",2],[159,"ext","codeunit",30157,"GetValueAsBigInteger",2],[161,"ext","codeunit",30157,"GetValueAsBigInteger",2],[163,"ext","codeunit",30157,"GetValueAsDecimal",2],[165,"ext","codeunit",30157,"GetValueAsDecimal",2],[167,"ext","codeunit",30157,"GetValueAsDecimal",2],[169,"ext","codeunit",30157,"GetValueAsDecimal",2],[172,"write",30144,"Modify"],[176,"ext","table",30114,"Add",3]]},{"name":"GetShopifyFulfillmentOrdersFromShopifyOrder","line":181,"kind":"procedure","access":"internal","params":2,"steps":[[187,"ext","codeunit",30103,"SetShop",1],[191,"call","RegisterFulfillmentService",1],[199,"ext","codeunit",30103,"ExecuteGraphQL",2],[201,"call","ExtractFulfillmentOrdersFromOrder",3],[209,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"GetAssignedFulfillmentOrders","line":212,"kind":"procedure","access":"internal","params":2,"steps":[[221,"ext","codeunit",30103,"SetShop",1],[223,"call","HasFulfillmentService",0],[225,"write",30102,"Modify"],[232,"ext","codeunit",30103,"ExecuteGraphQL",2],[234,"call","ExtractAssignedFulfillmentOrderIds",4],[242,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"HasFulfillmentService","line":245,"kind":"procedure","access":"local","params":0,"steps":[[253,"ext","codeunit",30198,"GetFulfillmentServiceName",0],[254,"ext","codeunit",30103,"ExecuteGraphQL",2],[258,"ext","codeunit",30157,"GetJsonArray",3]]},{"name":"ExtractAssignedFulfillmentOrderIds","line":264,"kind":"procedure","access":"local","params":4,"steps":[[271,"ext","codeunit",30157,"GetJsonArray",3],[273,"ext","codeunit",30157,"GetValueAsText",2],[274,"ext","codeunit",30157,"GetJsonObject",3],[275,"ext","codeunit",30103,"GetIdOfGId",1],[275,"ext","codeunit",30157,"GetValueAsText",2]]},{"name":"AcceptFulfillmentRequest","line":285,"kind":"procedure","access":"internal","params":2,"steps":[[291,"ext","codeunit",30103,"SetShop",1],[295,"ext","codeunit",30103,"ExecuteGraphQL",2],[298,"call","ConvertToRequestStatus",1],[298,"ext","codeunit",30157,"GetValueAsText",2],[301,"write",30143,"Modify"]]},{"name":"ConvertToDeliveryMethodType","line":308,"kind":"procedure","access":"local","params":1,"steps":[[310,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]},{"name":"ConvertToRequestStatus","line":317,"kind":"procedure","access":"local","params":1,"steps":[[319,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]}]}