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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
stevelord
New Member

What is the format for adding optional parameters to MakeResourcePath?

I have a connector that currently has two parameters.

 

MakeResourcePath = (projectId, optional server) =>

 

When I add an additional optional parameter adding something like this, the connector fails to load:

 

MakeResourcePath = (projectId, optional server, optional customServer) =>

 

How do I specify extra parameters? These are all named in 

FunctionType = Type.ForFunction(
    [
        Parameters = [

            server = (type text) meta [...],

            projectId = (type text) meta [...],

            customServer = (type text) meta [...]

    ]

2 REPLIES 2
stevelord
New Member

Thanks Support Team,

Unfortunately that does not answer the question. I would like to see an example of MakeResourcePath with more than one optional parameter. Would you have that example?

v-yanjiang-msft
Community Support
Community Support

Hi @stevelord ,

Please see if this document helps:

Using a resource path for Power Query connectors - Power Query | Microsoft Docs

Power Query dynamic file path | Excel Quick Help

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.