Forum Discussion
API Calls from column
- 7 years ago
Hi tthierry,
I've tried this earlier. You need to follow below logic:
let ... PreviousStep = ... , Step = Table.AddColumn(PreviousStep, "NewColumnName", each Json.Document(Web.Contents("https://api.workflowmax.com/job.api/get/" & [id] & "/customfield?apiKey=[apiKey]&accountKey=[accountKey]"))), in Step
Regards,
Ruslan
-------------------------------------------------------------------
Did I answer your question? Mark my post as a solution!
Hi tthierry,
I've tried this earlier. You need to follow below logic:
let ... PreviousStep = ... , Step = Table.AddColumn(PreviousStep, "NewColumnName", each Json.Document(Web.Contents("https://api.workflowmax.com/job.api/get/" & [id] & "/customfield?apiKey=[apiKey]&accountKey=[accountKey]"))), in Step
Regards,
Ruslan
-------------------------------------------------------------------
Did I answer your question? Mark my post as a solution!
Hi Ruslan,
I was looking for this exact same thing, but I'm a powerBI noob; where do you run this script? From a blank query?
Thanks a lot!
/Mari
- tthierry7 years agoFrequent Visitor
Hi Anonymous
Yes. Basically I created a function to call the API and I created a query that calls that function for each API that is created based on my database.
- Anonymous7 years agoNot applicable
Did you have issues with the id being a number and the api a text? I have the same challenge that you initially had.
thanks!