EulandaXtools — Funktionsreferenz
Erzeugt eine Shopify Global ID (GID) aus einer numerischen ID und einem Ressourcentyp.
ConvertTo-ShopifyGid [-Id] <long> [-Type] <string> [<CommonParameters>]Baut eine GID im Format 'gid://shopify/{Type}/{Id}' zusammen, wie sie von der Shopify GraphQL Admin API erwartet wird. Wird intern von allen migrierten Shopify-Funktionen verwendet, um numerische IDs in GIDs umzuwandeln.
-Id
Type: longNumerische Shopify-ID (z.B. Product-ID, Order-ID).
-Type
Type: stringShopify-Ressourcentyp. Gültige Werte: Product, Order, Collection, Customer, ProductImage, ProductVariant, InventoryItem, MediaImage.
stringConvertTo-ShopifyGid -Id 7654321098765 -Type 'Product'
# Gibt 'gid://shopify/Product/7654321098765' zurückConvertTo-ShopifyGid -Id 5551234567890 -Type 'Order'
# Gibt 'gid://shopify/Order/5551234567890' zurück