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
Anonymous
Not applicable

custom data connector with URL as parameter for a web api

I am building the custom data connector where I have a situation to take URL as a parameter. So basically if the user finds our connectors from the market place the first step will be inputing the domain name like below 

 

 

powerbi domain url.jpg

 Here is my M Language Code: 

 

 

[DataSource.Kind="TConnectorPOC", Publish="TConnectorPOC.Publish"]
shared TConnectorPOC.Contents = (optional message as text) =>
    let
      
        source=Json.Document(Web.Contents(basicURL & endpoint )),
      #"Converted to Table" = Table.FromList(source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
       #"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"projectId", "parentQuoteId", "projectGroupId","projectGroupCode", "projectGroupName", "code", "name", "description", "status", "customerId","customerContactId", "templateId"})
    in
         #"Expanded Column1";

 

 

Basically my basicURL should prompt the first image if the users open our connector. Kindly help. thanks 

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, you can get better support by creating a support ticket.

.

 

Best Regards,

Liang 

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.