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.
Example:
curl -u "USERNAME:PASSWORD" -X "POST" -H "Content-Type: text/xml" -H "Cache-Control: no-cache" --data-binary @list_all_agents.xml
"https://qualysapi.qualys.com/qps/rest/2.0/search/am/hostasset/"
The contents of the XML file would look like this.
<ServiceRequest>
<filters>
<Criteria field="tagName" operator="EQUALS">Cloud Agent</Criteria>
</filters>
</ServiceRequest>
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?
Robert