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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.