Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have
[DataSource.Kind="Test", Publish="Test.Publish"]
shared Test.Contents = Value.ReplaceType(TestImpl, TestType);
TestType = type function (
duration as (type number meta [
DataSource.Path = false,
Type = "Singleton",
MakeResourcePath = () => "TestConnector",
ParseResourcePath = (resource) => { },
Documentation.FieldCaption = "Lookback duration",
Documentation.AllowedValues = { 1..30 },
Documentation.SampleValues = {"25"},
Documentation.FieldDescription = "Defines how many days starting from today the connector will look back in time. It can be maximum 30 days"
]),
environment as (type text meta [
Documentation.FieldCaption = "Environment",
Documentation.AllowedValues = { "Test", "Dev", "Prod" },
Documentation.FieldDescription = "Defines which environment data, do you want access"
]))
as table meta [
// appears in the initial datasource parameter configuration dialog
Documentation.Name = "Test"
];
TestImpl = (DurationValue as number, Environment as text) =>
let
......
Is it possible show to user message if value of duration not from 1 to 30...I dont want Documentation.AllowedValues = { 1..30 }, dropdown...I want it be text field. @artemus
Solved! Go to Solution.
No, the most you can do is use Documentation.FieldDescription and Documentation.FieldCaption, and then fail in the TestConnection.
No, the most you can do is use Documentation.FieldDescription and Documentation.FieldCaption, and then fail in the TestConnection.