Value.ReplaceMetadata

About

Replaces the metadata on a value with the new metadata record provided and returns the original value with the new metadata attached.

Syntax

Value.ReplaceMetadata(value as any, newMeta as record) as any  

Arguments

Argument Description
value The value to modify.
newMeta The new metadata to replace the old metadata with..

Example

Value.ReplaceMetadata(1 meta [meta = 1], [meta=2]) equals  1 meta [meta = 2]