Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Download tool - HTTP Get with body

MichaelKnudsen
6 - Meteoroid

Hi 

 

I am trying to make a GET call using the download tool, and need to add a body to the call. 

 

However using the "Take Querystring/Body from field" option under Payload adds the information as query string and not as body

 

Is there any way to change this behaviour?

 

Best regards

Michael

5 REPLIES 5
gawa
16 - Nebula
16 - Nebula

Hi @MichaelKnudsen 

 

I always make body contents into json format, and convert it into Blob, and specify it as a field for body. It works in my case. Please try it out if it fits to your case.

MichaelKnudsen
6 - Meteoroid

Hi @gawa 

 

Thanks for the reply. I have tried your suggestion by using the Blob Convert field, but then it will not allow me to use the field in the Download tool anymore. 

 

Do you have an example where you have it working?

 

BR

Michael

gawa
16 - Nebula
16 - Nebula

@MichaelKnudsen  

 

In order to specifically advice, I need more detail like API documentation or something on the website you try to connect.

Can you disclose more information as much as possbile?

MichaelKnudsen
6 - Meteoroid

Basically the api is a query in a MongoDB, so the URL looks somethin like this 

 

https://our-api.xxx.yyy/api/data?colletion=mac_data_qb  

 

and the json body is the actual query to the database which looks something like this

 

{"query": {"Production Order Number": "1117617101"}, "sort_key": "Timestamp", "docs_limit": 1, "columns": {}}

 

MichaelKnudsen
6 - Meteoroid

Got this to work by setting the HTTP action to Custom and then using GET for the command

 

Skærmbillede 2023-10-04 083843.png

 

 

Labels
Top Solution Authors