{"title":"Codeunit 30116 Shpfy Customer Export, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30116-shpfy-customer-export/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":30116,"name":"Shpfy Customer Export","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30116-shpfy-customer-export/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30116-shpfy-customer-export/source/","path":"src/Apps/W1/Shopify/App/src/Customers/Codeunits/ShpfyCustomerExport.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:30114":{"name":"Shpfy Customer API","url":"https://jonas-paprotka.de/ref/codeunit/30114-shpfy-customer-api/"},"codeunit:30118":{"name":"Shpfy Customer Mapping","url":"https://jonas-paprotka.de/ref/codeunit/30118-shpfy-customer-mapping/"},"codeunit:30313":{"name":"Shpfy Skipped Record","url":"https://jonas-paprotka.de/ref/codeunit/30313-shpfy-skipped-record/"},"table:30105":{"name":"Shpfy Customer","url":"https://jonas-paprotka.de/ref/table/30105-shpfy-customer/"},"table:30106":{"name":"Shpfy Customer Address","url":"https://jonas-paprotka.de/ref/table/30106-shpfy-customer-address/"},"codeunit:30418":{"name":"Shpfy Metafields","url":"https://jonas-paprotka.de/ref/codeunit/30418-shpfy-metafields/"}},"procs":[{"name":"OnRun","line":20,"kind":"trigger","steps":[[27,"ext","codeunit",30114,"FillInMissingShopIds",0],[30,"ext","codeunit",30118,"SetShop",1],[33,"ext","codeunit",30118,"FindMapping",2],[35,"call","CreateShopifyCustomer",1],[39,"ext","codeunit",30313,"LogSkippedRecord",3],[42,"call","UpdateShopifyCustomer",2],[49,"call","UpdateShopifyCustomer",2]]},{"name":"CreateShopifyCustomer","line":70,"kind":"procedure","access":"local","params":1,"steps":[[76,"ext","codeunit",30313,"LogSkippedRecord",3],[82,"call","FillInShopifyCustomerData",3],[83,"ext","codeunit",30114,"CreateCustomer",2],[87,"write",30105,"Insert"],[88,"write",30106,"Insert"],[92,"call","UpdateMetafields",1]]},{"name":"FillInShopifyCustomerData","line":102,"kind":"procedure","access":"internal","params":3,"steps":[[118,"call","SpiltNameIntoFirstAndLastName",4],[121,"call","SpiltNameIntoFirstAndLastName",4],[123,"call","SpiltNameIntoFirstAndLastName",4],[197,"call","HasDiff",2],[197,"call","HasDiff",2]]},{"name":"SetShop","line":238,"kind":"procedure","access":"internal","params":1,"steps":[[241,"ext","codeunit",30114,"SetShop",1]]},{"name":"UpdateShopifyCustomer","line":272,"kind":"procedure","access":"local","params":2,"steps":[[283,"call","FillInShopifyCustomerData",3],[284,"ext","codeunit",30114,"UpdateCustomer",2],[285,"write",30105,"Modify"],[286,"write",30106,"Modify"],[290,"call","UpdateMetafields",1]]},{"name":"UpdateMetafields","line":298,"kind":"procedure","access":"local","params":1,"steps":[[302,"ext","codeunit",30418,"SyncMetafieldsToShopify",3]]}]}