---
title: "Codeunit 30123 Shpfy Sync Customers, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/points/
object: https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/
app: "Shopify Connector"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 30123 Shpfy Sync Customers, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/points/

4 procedures and triggers with a step in src/Apps/W1/Shopify/App/src/Customers/Codeunits/ShpfySyncCustomers.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 18](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L18), trigger.

- [23](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L23) calls `SetShop`
- [26](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L26) calls `ImportCustomersFromShopify`
- [28](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L28) calls `ImportCustomersFromShopify`
- [30](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L30) calls `SyncCustomersToShopify`
- [33](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L33) calls [Table 30102 Shpfy Shop](https://jonas-paprotka.de/ref/table/30102-shpfy-shop/) `SetLastSyncTime`
- [34](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L34) writes [Table 30102 Shpfy Shop](https://jonas-paprotka.de/ref/table/30102-shpfy-shop/) Modify

## SyncCustomersToShopify

[Line 48](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L48), local.

- [52](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L52) calls [Codeunit 30116 Shpfy Customer Export](https://jonas-paprotka.de/ref/codeunit/30116-shpfy-customer-export/) `SetCreateCustomers`
- [53](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L53) runs [Codeunit 30116 Shpfy Customer Export](https://jonas-paprotka.de/ref/codeunit/30116-shpfy-customer-export/)

## ImportCustomersFromShopify

[Line 59](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L59), local.

- [67](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L67) calls [Codeunit 30114 Shpfy Customer API](https://jonas-paprotka.de/ref/codeunit/30114-shpfy-customer-api/) `RetrieveShopifyCustomerIds`
- [74](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L74) writes [Table 30105 Shpfy Customer](https://jonas-paprotka.de/ref/table/30105-shpfy-customer/) Insert
- [82](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L82) writes [Table 30105 Shpfy Customer](https://jonas-paprotka.de/ref/table/30105-shpfy-customer/) Insert
- [87](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L87) calls [Codeunit 30117 Shpfy Customer Import](https://jonas-paprotka.de/ref/codeunit/30117-shpfy-customer-import/) `SetShop`
- [89](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L89) calls [Codeunit 30117 Shpfy Customer Import](https://jonas-paprotka.de/ref/codeunit/30117-shpfy-customer-import/) `SetCustomer`
- [92](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L92) runs [Codeunit 30117 Shpfy Customer Import](https://jonas-paprotka.de/ref/codeunit/30117-shpfy-customer-import/)

## SetShop

[Line 102](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L102), internal.

- [105](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L105) calls [Codeunit 30114 Shpfy Customer API](https://jonas-paprotka.de/ref/codeunit/30114-shpfy-customer-api/) `SetShop`
- [106](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L106) calls [Codeunit 30117 Shpfy Customer Import](https://jonas-paprotka.de/ref/codeunit/30117-shpfy-customer-import/) `SetShop`
- [107](https://jonas-paprotka.de/ref/codeunit/30123-shpfy-sync-customers/source/#L107) calls [Codeunit 30116 Shpfy Customer Export](https://jonas-paprotka.de/ref/codeunit/30116-shpfy-customer-export/) `SetShop`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
