Microsoft Power Query library for most popular API
- Create Blank Query and name it "Library" (with a capital letter).
- Copy and paste the code below through the Advanced Editor.
let
CDN = "https://rawgit.com/power-query/power-query-library/master/library/library.json",
JSON = Json.Document(Binary.Buffer(Web.Contents(CDN))),
Names = Record.FieldNames(JSON),
Function.Evaluate = (code as text) as function => Expression.Evaluate(code, #shared),
Transforms = List.Transform(Names, each {_, Function.Evaluate})
in
Record.TransformFields(JSON, Transforms)
NOTE!
CDN-link to the library may change in the near future. If you encounter an error "DataSource.Error: Web.Contents failed to get contents" in Power Query, please go to this page for the renew your code.
- Create Blank Query and name it "__" (double underscore).
- Copy and paste the code below through the Advanced Editor.
(name) => Record.Field(Library, name)
Thanks tycho01 for the loader idea :)
Connect as necessary library functions in your Queries as shown in the example below.
let
Value.TypeToText = __("Value.TypeToText")
in
Value.TypeToText({1,2,3})
Also, you can call library functions without prior declaration, like so:
__("FunctionName")(arguments)