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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rebeccapeltz
Frequent Visitor

Collect Parameters to Use in API in Custom Data Connector

I have a Custom Data Connector that calls a Rest API.  I want the Connector to prompt for parameters that I can add to the API request.  I see how parameters are collected in the HelloWorldWithDocs example.   You define a type, HellowWorldType, that sets up 2 params "message" and "count" with some documentation (which I never see when I run this).   Then you pass the parameters to the HelloWorldImpl and create a table using the parameters.

Should I use the Value.ReplaceType to collect the parameters as in this example? Once I have the params I could add them to the API string and when I get the data and table created from the API call, I would return that from the "Impl" function.

Is this the recommended way to collect and add params to an API call?

I'm looking at this example: https://github.com/Microsoft/DataConnectors/tree/master/samples/HelloWorldWithDocs

 

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

Hi @rebeccapeltz 

You can refer to the following link, it offer some solution about custom connector

Custom connector development FAQ - Power Query | Microsoft Learn

 

Best Regards!

Yolo Zhu

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
rebeccapeltz
Frequent Visitor

Thank yor for sharing the FAQ. 

v-xinruzhu-msft
Community Support
Community Support

Hi @rebeccapeltz 

You can refer to the following link, it offer some solution about custom connector

Custom connector development FAQ - Power Query | Microsoft Learn

 

Best Regards!

Yolo Zhu

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors