---
title: "Codeunit 30372 Shpfy Sales Channel API, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/points/
object: https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/
app: "Shopify Connector"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/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 30372 Shpfy Sales Channel API, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/points/

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

## RetrieveSalesChannelsFromShopify

[Line 23](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L23), internal.

- [32](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L32) calls `CollectChannels`
- [34](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L34) calls [Codeunit 30103 Shpfy Communication Mgt.](https://jonas-paprotka.de/ref/codeunit/30103-shpfy-communication-mgt/) `SetShop`
- [38](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L38) calls [Codeunit 30103 Shpfy Communication Mgt.](https://jonas-paprotka.de/ref/codeunit/30103-shpfy-communication-mgt/) `ExecuteGraphQL`
- [39](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L39) calls [Codeunit 30157 Shpfy Json Helper](https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/) `GetJsonArray`
- [40](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L40) calls `ExtractSalesChannels`
- [47](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L47) calls [Codeunit 30157 Shpfy Json Helper](https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/) `GetValueAsBoolean`
- [49](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L49) calls `RemoveNotExistingChannels`

## RemoveNotExistingChannels

[Line 65](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L65), local.

- [72](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L72) writes [Table 30160 Shpfy Sales Channel](https://jonas-paprotka.de/ref/table/30160-shpfy-sales-channel/) Delete(true)

## ExtractSalesChannels

[Line 76](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L76), local.

- [86](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L86) calls [Codeunit 30157 Shpfy Json Helper](https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/) `GetValueAsText`
- [87](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L87) calls [Codeunit 30103 Shpfy Communication Mgt.](https://jonas-paprotka.de/ref/codeunit/30103-shpfy-communication-mgt/) `GetIdOfGId`
- [87](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L87) calls [Codeunit 30157 Shpfy Json Helper](https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/) `GetValueAsText`
- [90](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L90) validates [Table 30160 Shpfy Sales Channel](https://jonas-paprotka.de/ref/table/30160-shpfy-sales-channel/) `Id`
- [91](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L91) calls [Codeunit 30157 Shpfy Json Helper](https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/) `GetJsonArray`
- [93](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L93) validates [Table 30160 Shpfy Sales Channel](https://jonas-paprotka.de/ref/table/30160-shpfy-sales-channel/) `Name`
- [93](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L93) calls [Codeunit 30157 Shpfy Json Helper](https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/) `GetValueAsText`
- [94](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L94) calls [Codeunit 30157 Shpfy Json Helper](https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/) `GetValueAsText`
- [98](https://jonas-paprotka.de/ref/codeunit/30372-shpfy-sales-channel-api/source/#L98) writes [Table 30160 Shpfy Sales Channel](https://jonas-paprotka.de/ref/table/30160-shpfy-sales-channel/) Insert(true)

## Source

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

JOP-AL, 2026-11-20.
