Forum Discussion
Anonymous
6 years agoNot applicable
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...
- 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 = ... ]} ],
artemus
Microsoft Employee
6 years agoOh I see, I think the [DataSource.Kind = ...] is overriding the metadata you already have. You should be able to just append it to your current metadata:
[
DataSource.Kind = "CustomConnector",
Documentation.Name = "GetFunction2",
...
]
shared CustomConnector.GetFunction2 = GetFunction2
artemus
Microsoft Employee
6 years agoActually scratch that, just add
Documentation.Description
to your origional solution
- Anonymous6 years agoNot applicable
I did, but it still doesn't work. I replaced "Documentation.LongDescription" with "Documentation.Description" but it still shows like this:
- artemus6 years ago
Microsoft Employee
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 = ... ]} ],- Anonymous6 years agoNot applicable
Thank you for the help artemus. I'm checking that out.