Codeunit 30451 Shpfy GQL AddImageToProduct

Shopify Connector, Microsoft.Integration.Shopify

src/Apps/W1/Shopify/App/src/GraphQL/Codeunits/ShpfyGQLAddImageToProduct.Codeunit.al24 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.Integration.Shopify;/// <summary>/// Codeunit Shpfy GQL AddImageToProduct (ID 30406) implements Interface Shpfy IGraphQL./// </summary>codeunit 30451 "Shpfy GQL AddImageToProduct" implements "Shpfy IGraphQL"{    Access = Internal;    procedure GetGraphQL(): Text    begin        exit('{"query": "mutation { productUpdate( product:{id: \"gid://shopify/Product/{{ProductId}}\"}, media: [ { originalSource: \"{{ResourceUrl}}\" mediaContentType: IMAGE } ]) { product { media(first: 1, reverse: true) { nodes{ id mediaErrors { code details message } } } } userErrors { field message } } }"}');    end;    procedure GetExpectedCost(): Integer    begin        exit(10);    end;}