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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
tthierry
Frequent Visitor

Launch multiple PUT API calls from a csv document

Hello

 

I have a bit of a challenge.

I have an excel file with two columns: a list of PUT APIs and their respective bodies. Each API and each body is different.

The APIs are structured:

PUT https://api.workflowmax.com/job.api/update/[id]/customfield?apiKey=[your API key]&accountKey=[WorkflowMax account key]

And the bodies are structured:

<CustomFields>
  <CustomField>
    <ID>5</ID> 
    <Text>some text</Text> 
    <ID>6</ID> 
    <Text>some text</Text> 
  </CustomField>
</CustomFields>

I would like to call these put APIs in order to update the data.

I thought about using https://docs.microsoft.com/en-us/powerquery-m/webmethod-put.

However, I am not super comfortable with it and don't really know where to start. A friend suggested to code this in Python but I am pretty sure there must be a way in PowerBI. Anyone who might be able to help please?

1 REPLY 1
ImkeF
Community Champion
Community Champion

For some strange reason, that documentation contains functions that you actually cannot use in Power Query. That function is one of them: https://social.technet.microsoft.com/Forums/security/en-US/ad808464-8819-45ac-a015-b53938095aae/how-... 

 

So Python is probably the best solution then.

 

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.