Forum Discussion

troygraham's avatar
troygraham
Frequent Visitor
9 years ago

API Post / Get & make into a http link

Our company is currently using Goformz and would like to start tapping into the backend using API Post and GET commands in Power BI so we can generate some report data for use in Excel. 

 

I am very new to Power BI and still getting my head around the coding, so i have no idea how to achieve the following goal.

 

This is what I need to be able to do

 

1. First I need to run a POST command

https://api.goformz.com:443/v2/formz/89c9b747-9bd7-4c3d-b5bc-2f3b76758898/exports

 

2. From the post command results i need to pull part of the location url and add it to a new query

 

 

{
"location": "https://api.goformz.com/v2/queue/f4c3349c-35da-4117-a335-a7ac001504bd",
"access-control-expose-headers": "Link, X-Total-Count, Location",
"date": "Mon, 10 Jul 2017 01:16:30 GMT",
"content-length": "0",
"content-type": null
}

 

3. The new query would then look like this:

https://api.goformz.com:443/v2/formz/89c9b747-9bd7-4c3d-b5bc-2f3b76758898/exports/f4c3349c-35da-4117-a335-a7ac001504bd

 

4. The results of the new query would look like this

 

{ "id": "f4c3349c-35da-4117-a335-a7ac001504bd", "createdDate": "2017-07-10T01:16:31", "contentType": "application/pdf", "link": "https://servicereachstore.blob.core.windows.net/40669a94-c2f5-43f2-bc0b-a278002e1864/filestorage/f4c3349c-35da-4117-a335-a7ac001504bd?sv=2014-02-14&sr=b&sig=fabWRE%2FjvwMB9oeSIIgu88Apc%2F8zSroxKv%2BqkRiI%2BXs%3D&se=2017-07-10T01%3A29%3A46Z&sp=r", "linkExpiration": "2017-07-10T01:29:46.9105457+00:00" }

 

5. How can i then place the new link in a cell in excel

https://servicereachstore.blob.core.windows.net/40669a94-c2f5-43f2-bc0b-a278002e1864/filestorage/f4c3349c-35da-4117-a335-a7ac001504bd?sv=2014-02-14&sr=b&sig=fabWRE%2FjvwMB9oeSIIgu88Apc%2F8zSroxKv%2BqkRiI%2BXs%3D&se=2017-07-10T01%3A29%3A46Z&sp=r

 

 

 

5 Replies