Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Community v19.6

Looks aren't everything... But the latest Community refresh looks darn good!

Learn More

Replicating the Curl --data-binary flag in the Download tool


Hi Alteryx Community!


I was hoping that someone could help me with an issue I'm having. I'm trying to replicate in Alteryx an API call that uses Curl. The host I'm making the call to requires that an XML file be attached using the '--data-binary' flag.




curl -u "USERNAME:PASSWORD" -X "POST" -H "Content-Type: text/xml" -H "Cache-Control: no-cache" --data-binary @list_all_agents.xml


The contents of the XML file would look like this.


<Criteria field="tagName" operator="EQUALS">Cloud Agent</Criteria>


I've tried pasting the XML data directly into the Download tool in the 'Use Following for Query String/Body' field, and I have also tried creating a field using the formula tool and using that field. I get a basic 'Data type not supported' error back from the host using both methods.


Any ideas?



Alteryx Certified Partner
Alteryx Certified Partner

have you tried just using the RunCommand tool?  it could also be the curl version that is delivered with Alteryx not supporting your request.  If you can execute your desired command via the command line, you can use the run command tool and do exactly the same thing within Alteryx.





Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.

Thank you for the reply. I had considered that but I am on a new laptop and don't have curl installed yet. Or, at least, I thought I didn't. I completely missed where it's included with the Alteryx Designer install. I'll give it a try.