Function.Invoke

Function.Invoke is a Power Query M function that invokes a given function using a specified list of arguments. The function returns the result of the invocation.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365

Syntax

Function.Invoke(
   function as function,
   args as list,
) as any

Description

Invokes the given function using the specified list of arguments and returns the result.

Examples

Invokes Record.FieldNames with one argument [A=1,B=2]

// Output: {"A", "B"}
Function.Invoke( Record.FieldNames, {[A = 1, B = 2]} )

Other functions related to Function.Invoke are:

BI Gorilla Blog

Last update: August 25, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/function-invoke
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.