Codeunit 30219 Shpfy GQL AddProductImage
Source AL, 29 lines
src/Apps/W1/Shopify/App/src/GraphQL/Codeunits/ShpfyGQLAddProductImage.Codeunit.allines 8 to 23 of 29, Copyright (c) Microsoft Corporation. MIT
codeunit 30219 "Shpfy GQL AddProductImage" implements "Shpfy IGraphQL"{ Access = Internal; /// <summary> /// GetGraphQL. /// </summary> /// <returns>Return value of type Text.</returns> internal procedure GetGraphQL(): Text begin exit('{"query": "mutation { productCreateMedia(media: {mediaContentType: IMAGE, originalSource: \"{{ResourceUrl}}\"}, productId: \"gid://shopify/Product/{{ProductId}}\") { media { ...mediaFieldsByType } mediaUserErrors {code field message}}} fragment mediaFieldsByType on Media { ... on MediaImage { id }}"}'); end; /// <summary> /// GetExpectedCost. /// </summary>Procedures 2
| Procedure | Versions |
|---|---|
| internal Get | 22 to 28 |
| internal Get | 22 to 28 |