Forum Discussion
tthierry
7 years agoFrequent Visitor
API Calls from column
Hi So here is the challenge, I have an API in the format https://api.workflowmax.com/job.api/get/[id]/customfield?apiKey=[apiKey]&accountKey=[accountKey] The ID changes for each job and jobs ...
- 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!
Anonymous
7 years agoNot applicable
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
tthierry
7 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!