Compartilhar via


Table.SingleRow

Sintaxe

Table.SingleRow(table as table) as record

Sobre

Retorna a única linha em uma linha table. Se houver table mais de uma linha, um erro será gerado.

Exemplo

Retorne a única linha na tabela.

Usage

Table.SingleRow(Table.FromRecords({[CustomerID = 1, Name = "Bob", Phone = "123-4567"]}))

Saída

[CustomerID = 1, Name = "Bob", Phone = "123-4567"]