{"title":"Codeunit 30250 Shpfy Returns API, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30250-shpfy-returns-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":30250,"name":"Shpfy Returns API","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30250-shpfy-returns-api/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30250-shpfy-returns-api/source/","path":"src/Apps/W1/Shopify/App/src/Order Returns/Codeunits/ShpfyReturnsAPI.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:30157":{"name":"Shpfy Json Helper","url":"https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/"},"codeunit:30103":{"name":"Shpfy Communication Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/30103-shpfy-communication-mgt/"},"table:30147":{"name":"Shpfy Return Header","url":"https://jonas-paprotka.de/ref/table/30147-shpfy-return-header/"},"codeunit:30224":{"name":"Shpfy Return Enum Convertor","url":"https://jonas-paprotka.de/ref/codeunit/30224-shpfy-return-enum-convertor/"},"table:30114":{"name":"Shpfy Data Capture","url":"https://jonas-paprotka.de/ref/table/30114-shpfy-data-capture/"},"table:30141":{"name":"Shpfy Return Line","url":"https://jonas-paprotka.de/ref/table/30141-shpfy-return-line/"}},"procs":[{"name":"GetReturns","line":18,"kind":"procedure","access":"internal","params":2,"steps":[[24,"ext","codeunit",30157,"GetJsonArray",3],[26,"call","GetReturn",1],[26,"ext","codeunit",30103,"GetIdOfGId",1],[26,"ext","codeunit",30157,"GetValueAsText",2],[28,"ext","codeunit",30157,"GetValueAsBoolean",2],[30,"ext","codeunit",30157,"GetValueAsText",2],[32,"ext","codeunit",30157,"GetValueAsText",2],[33,"ext","codeunit",30103,"ExecuteGraphQL",1],[34,"ext","codeunit",30157,"GetJsonObject",2]]},{"name":"GetReturn","line":38,"kind":"procedure","access":"local","params":1,"steps":[[47,"call","GetReturnHeader",1],[48,"call","GetReturnLocations",1],[53,"ext","codeunit",30103,"ExecuteGraphQL",2],[55,"ext","codeunit",30157,"GetJsonArray",2],[57,"ext","codeunit",30157,"GetValueAsText",2],[59,"ext","codeunit",30157,"GetValueAsText",2],[61,"ext","codeunit",30157,"GetValueAsText",2],[62,"call","FillInReturnLine",3],[63,"ext","codeunit",30157,"GetValueAsText",2],[64,"call","FillInUnverifiedReturnLine",2],[66,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"GetReturnHeader","line":69,"kind":"procedure","access":"local","params":1,"steps":[[79,"ext","codeunit",30103,"ExecuteGraphQL",2],[80,"ext","codeunit",30157,"GetJsonObject",2],[83,"ext","codeunit",30157,"GetValueAsBigInteger",2],[84,"ext","codeunit",30103,"GetShopRecord",0],[85,"write",30147,"Insert"],[87,"ext","codeunit",30224,"ConvertToReturnStatus",1],[87,"ext","codeunit",30157,"GetValueAsText",2],[88,"ext","codeunit",30224,"ConvertToReturnDeclineReason",1],[88,"ext","codeunit",30157,"GetValueAsText",2],[89,"ext","table",30147,"SetDeclineNote",1],[89,"ext","codeunit",30157,"GetValueAsText",2],[91,"ext","codeunit",30157,"GetValueIntoField",4],[92,"ext","codeunit",30157,"GetValueIntoField",4],[95,"ext","table",30114,"Add",3]]},{"name":"GetReturnLocations","line":107,"kind":"procedure","access":"internal","params":1,"steps":[[118,"ext","codeunit",30103,"ExecuteGraphQL",2],[121,"ext","codeunit",30157,"GetJsonArray",2],[123,"ext","codeunit",30157,"GetValueAsText",2],[125,"ext","codeunit",30157,"GetValueAsText",2],[128,"call","GetReturnLocationsFromReturnFulfillOrder",2],[128,"ext","codeunit",30157,"GetValueAsText",2],[129,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"GetReturnLocationsFromReturnFulfillOrder","line":132,"kind":"procedure","access":"local","params":2,"steps":[[143,"ext","codeunit",30103,"ExecuteGraphQL",2],[146,"ext","codeunit",30157,"GetJsonArray",2],[148,"ext","codeunit",30157,"GetValueAsText",2],[150,"ext","codeunit",30157,"GetValueAsText",2],[153,"call","CollectLocationsFromLineDispositions",2],[154,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"CollectLocationsFromLineDispositions","line":157,"kind":"procedure","access":"local","params":2,"steps":[[164,"ext","codeunit",30103,"GetIdOfGId",1],[164,"ext","codeunit",30157,"GetValueAsText",2],[166,"ext","codeunit",30157,"GetJsonArray",2],[173,"ext","codeunit",30157,"GetValueAsBigInteger",2],[175,"ext","codeunit",30157,"GetValueAsBigInteger",2]]},{"name":"FillInReturnLine","line":190,"kind":"procedure","access":"local","params":3,"steps":[[198,"ext","codeunit",30103,"GetIdOfGId",1],[198,"ext","codeunit",30157,"GetValueAsText",2],[203,"ext","codeunit",30103,"GetIdOfGId",1],[203,"ext","codeunit",30157,"GetValueAsText",2],[204,"ext","codeunit",30103,"GetIdOfGId",1],[204,"ext","codeunit",30157,"GetValueAsText",2],[205,"write",30141,"Insert"],[207,"ext","codeunit",30157,"GetValueAsText",2],[208,"ext","codeunit",30157,"GetValueAsText",2],[213,"ext","table",30141,"SetReturnReasonNote",1],[213,"ext","codeunit",30157,"GetValueAsText",2],[214,"ext","table",30141,"SetCustomerNote",1],[214,"ext","codeunit",30157,"GetValueAsText",2],[217,"ext","codeunit",30157,"GetValueIntoField",4],[218,"ext","codeunit",30157,"GetValueIntoField",4],[219,"ext","codeunit",30157,"GetValueIntoField",4],[220,"ext","codeunit",30157,"GetValueIntoField",4],[221,"ext","codeunit",30157,"GetValueIntoField",4],[222,"ext","codeunit",30157,"GetValueIntoField",4],[223,"ext","codeunit",30157,"GetValueIntoField",4],[226,"ext","table",30114,"Add",3]]},{"name":"FillInUnverifiedReturnLine","line":229,"kind":"procedure","access":"local","params":2,"steps":[[236,"ext","codeunit",30103,"GetIdOfGId",1],[236,"ext","codeunit",30157,"GetValueAsText",2],[241,"write",30141,"Insert"],[243,"ext","codeunit",30157,"GetValueAsText",2],[244,"ext","codeunit",30157,"GetValueAsText",2],[245,"ext","table",30141,"SetReturnReasonNote",1],[245,"ext","codeunit",30157,"GetValueAsText",2],[246,"ext","table",30141,"SetCustomerNote",1],[246,"ext","codeunit",30157,"GetValueAsText",2],[249,"ext","codeunit",30157,"GetValueIntoField",4],[250,"ext","codeunit",30157,"GetValueIntoField",4],[251,"ext","codeunit",30157,"GetValueIntoField",4],[252,"ext","codeunit",30157,"GetValueIntoField",4],[253,"ext","codeunit",30157,"GetValueIntoField",4],[256,"ext","table",30114,"Add",3]]}]}