Codeunit 30331 Shpfy Mtfld Type Mixed Ref
src/Apps/W1/Shopify/App/src/Metafields/Codeunits/IMetafieldType/ShpfyMtfldTypeMixedRef.Codeunit.al34 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;using System.Utilities;codeunit 30331 "Shpfy Mtfld Type Mixed Ref" implements "Shpfy IMetafield Type"{ procedure HasAssistEdit(): Boolean begin exit(false); end; procedure IsValidValue(Value: Text): Boolean var Regex: Codeunit Regex; begin exit(Regex.IsMatch(Value, '^gid:\/\/shopify\/[A-Za-z]+\/\d+$')); end; procedure AssistEdit(var Value: Text[2048]): Boolean begin Value := Value; exit(false); end; procedure GetExampleValue(): Text begin exit('gid://shopify/Product/1234567890'); end;}