Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How to add documentation to custom functions in Power Query Custom Connector?

HI. I'm building a custom connector for Power BI, and I'd like to add documentation to my custom functions. I have read the official documentation and a few blog posts about this. I can't see what is...
  • artemus's avatar
    artemus
    6 years ago

    Here is a sample of a more complete connector:

        FunctionType = let 
                paramType = type text meta [
                    Documentation.FieldCaption = ...
                ],
                t = type function (param as paramType) as table
            in             
    t meta [
                    Documentation.Description = ...,
                    Documentation.DisplayName = ...,
                    Documentation.Caption = ...,
                    Documentation.Name = ...,
                    Documentation.LongDescription = ...,
                    Documentation.Examples = {[
                        Description = ...,
                        Code = ...,
                        Result = ...
                    ]}
                ],