List Connections HTTP Request
Udzielono odpowiedziI am attempting to run a GET command to retrieve a list of data connections (per the developer site linked here https://developers.workiva.com/wdata-v1/wdata-listconnections/#list-connections).
However, I am continuously getting the following output:
{"body":["'sourceType' or 'destinationType' must be provided along with their respective 'Id' fields to list connections."],"code":400,"details":null}
I am using the following Headers to set my required parameters:
What am I doing wrong on my end? Am I formatting the keys incorrectly? Or is there something else?
Thank you for your help in advance.
-
There are a couple of things here. First, there is a prebuilt command in the Workiva connector that handles the list-connections API endpoint, and would be simpler to use. Second, If you do need to make a raw HTTP-GET, you need to pass your parameters (sourceType, destinationType, etc) via query string parameters, not headers.
Wade
--
Wade Hays - Tower Turn0Hi Wade - thank you for the quick response! Running the HTTP-GET did not error out when passing parameters via query string. However, it did return a blank object as seen below.
Printing the first 64KB of the response...
{"code":200,"body":[],"cursor":null}
This was ran for a spreadsheet and query with a known connection. It looks like the raw HTTP-GET possibly isn't working as intended. I'll utilize the prebuilt command in this situation.
0Hi Jack,
I recommend using the List Connections Workiva Command as Wade mentioned above. However, if you do need to use the HTTP Request Get Command, it can be successfully configured to get connections for Spreadsheet destination types with the Spreadsheet ID as follows. Be sure to update the destination ID to reflect the Spreadsheet you are attempting to get the connections from.
0Zaloguj się, aby dodać komentarz.
Komentarze
Komentarze: 3