Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi ,
I need to download All contacts from a survey.
query "Contacts" :
= Json.Document(Web.Contents("https://api.alchemer.eu/v5/survey/"&SurveyIdParameter&"/surveycampaign/"&CampaignIdParameter&"/surveycontact?&api_token=123456&api_token_secret=123456"))
SurveyIdParameter is a single value eneterd manually.
CampaignIdParameter is a query parameter that get a list of values
How do I "make" PQ to loop on the values of the CampaignIdParameter ?
Appreciating any help,
Tamir
Solved! Go to Solution.
Hi @Anonymous ,
You can transform your list to a table, create a new custom functon like this:
(A as text) =>
let
Source = = Json.Document(Web.Contents("https://api.alchemer.eu/v5/survey/"&SurveyIdParameter&"/surveycampaign/"&A&"/surveycontact?&api_token=123456&api_token_secret=123456"))
Invoke this function to the table to craete a new column to get each content.
Refer: Scrape Data from Multiple Web Pages with Power Query
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can transform your list to a table, create a new custom functon like this:
(A as text) =>
let
Source = = Json.Document(Web.Contents("https://api.alchemer.eu/v5/survey/"&SurveyIdParameter&"/surveycampaign/"&A&"/surveycontact?&api_token=123456&api_token_secret=123456"))
Invoke this function to the table to craete a new column to get each content.
Refer: Scrape Data from Multiple Web Pages with Power Query
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Add a custom column to construct each individual URL and fetch its contents, then combine the results as records or tables as needed.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |