Table of contents
TOC
Collapse the table of content
Expand the table of content

Record.SelectFields

Owen Duncan|Last Updated: 4/19/2018

About

Returns a new record that contains the fields selected from the input record. The original order of the fields is maintained.

Record.SelectFields(record as record,  fields as any,  optional missingField as nullable number) as record  

Arguments

ArgumentDescription
recordThe record to check.
fieldsA single field name or list of field names.
optional missingFieldA MissingField enum value to handle missing fields. The default value is MissingField.Error.

MissingField enum

  • MissingField.Error = 0;

  • MissingField.Ignore = 1;

  • MissingField.UseNull = 2;

Remarks

  • The original order of the fields is maintained.

Examples

Record.SelectFields([A=1, B=2], "B") equals [B=2]  
Record.SelectFields([A=1, B=2, C=3], {"C", "B"}) equals [B=2, C=3]  
© 2018 Microsoft