Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Solved! Go to Solution.
Hi @awap87,
It could be done.
First, create a function using syntax like below.
let functionName = (param1 as datatype) =>
let
Source = Json.Document(Web.Contents("https://[region ID]-api.dotmailer.com/v2/campaigns/" & param1 & "/summary").
in
Source
in functionName
After you have inserted the ID column in to a new table, then you can add a custom column to the table that calls/invokes the function above. ![]()
Reference:
http://datachix.com/2014/05/22/power-query-functions-some-scenarios/
http://satalyst.com/power-query-creating-a-parameterized-function-in-m/
Regards
Hi @awap87,
It could be done.
First, create a function using syntax like below.
let functionName = (param1 as datatype) =>
let
Source = Json.Document(Web.Contents("https://[region ID]-api.dotmailer.com/v2/campaigns/" & param1 & "/summary").
in
Source
in functionName
After you have inserted the ID column in to a new table, then you can add a custom column to the table that calls/invokes the function above. ![]()
Reference:
http://datachix.com/2014/05/22/power-query-functions-some-scenarios/
http://satalyst.com/power-query-creating-a-parameterized-function-in-m/
Regards
Hi @v-ljerr-msft,
I do have the similar requirment and was going through theis solution but I didnt understand where to write this function and from where to call? Sorry new to this type of work.
Please advise.
Thanks
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.