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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
AkankshaAcharya
Regular Visitor

Query on custom connectors

Hi team,

I have a custom connector in Power BI and would like to distinguish between calls from Power BI desktop from Power BI service.

Now my questions are :

A) Is it possible to distinguish calls from within the connector code in the first place? And if yes, how can we achieve it?

B) Would Extension.CurrentApplication be helpful in this task? I would appreciate if anyone can share an example or documentation of this field/function and what exactly does it return, as I couldn't find anything useful online so far.

 

Any suggestions or leads would be appreciated. Thanks!

3 REPLIES 3
lbendlin
Super User
Super User

Power BI service has no idea how to handle your custom connectors. This is all delegated to the gateway cluster members. These gateway cluster members behave like headless instances of Power BI Desktop.  As far as I know there is no way to determine which entity (your PC or a gateway) is requesting the Power Query code for the custom connector.  What you could assume is that the operating system of the requestor is Windows 10 or 11 for the desktop, and Windows Server for the gateway.

How can I get the operating system of the requestor in the connector? Is there a function that I could use in power query?

In the vast majority of cases the requestor will be the Azure service. Not sure how that will help you.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors