Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
ChadC
Frequent Visitor

Custom UI when adding new custom connector

Hi, 

 

I have a custom data connector that currently requires the user to enter a string to specify the scope of data they wish to pull when adding the query. There are 37 possible values and I'd like to present the user with a dropdown menu instead of a text input box. I haven't been able to find any documentation on this. Is it possible?

 

For example, the current prompt for users adding this connector:Capture.PNG

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @ChadC 

There are some threads discussing about this problem, you may have a look:

https://community.powerbi.com/t5/Developer/Custom-data-connector-SDK-help-required/m-p/547696#M17057

https://community.powerbi.com/t5/Desktop/Custom-Data-Connector-UI-Dropdown-list/td-p/484102

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @ChadC 

There are some threads discussing about this problem, you may have a look:

https://community.powerbi.com/t5/Developer/Custom-data-connector-SDK-help-required/m-p/547696#M17057

https://community.powerbi.com/t5/Desktop/Custom-Data-Connector-UI-Dropdown-list/td-p/484102

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the help @v-juanli-msft . I was able to implement a dropdown menu using the link below which was mentioned in the first post you provided.

https://blog.crossjoin.co.uk/2014/11/27/specifying-allowed-values-sample-values-and-descriptions-for...

 

My code snippet for future reference:

 

[DataSource.Kind="Outreach", Publish="Outreach.Publish"]
shared Outreach.Contents = Value.ReplaceType(ScopeImpl, ScopeType);

ScopeType = type function(
    ScopeValues as (type text meta [
        Documentation.Description = "Select a scope.",
        Documentation.SampleValues = {"users"},
        Documentation.AllowedValues = {"audits","accounts","callDispositions","callPurposes","calls","customDuties","contentCategories","contentCategoryMemberships","duties","emailAddresses","events","favorites","mailAliases","mailboxes","mailings","opportunities","opportunityProspectRoles","opportunityStages","personas","phoneNumbers","profiles","prospects","recipients","roles","rulesets","sequenceStates","sequenceSteps","sequenceTemplates","sequences","snippets","stages","taskPriorities","tasks","teams","templates","users","webhooks"}
        ]))
        as table meta [
        Documentation.Name = "Outreach API"
    ];

ScopeImpl = (Scope as text) =>
    let
        source = Json.Document(Web.Contents(api_source_uri & Scope))
    in
        source;

The following replaces the dialog that I originally posted:

Capture.PNG

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.