API http POST - Loop/Array - Works in Postman
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I am new to Alteryx Designer. I have the following sample data in json. I can upload these data in Postman using iteration with no issues. How can we automate this in Alteryx Designer? I was trying with the Download tool but cannot get success. Do I need to use other Alteryx tool to solve this?
Thank you in advance!
data.json
[
{
"cusomerId": 9000,
"productId": 5
},
{
"cusomerId": 9001,
"productId": 4
},
{
"cusomerId": 9002,
"productId": 3
}
]
Solved! Go to Solution.
- Labels:
- API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Have you gotten it to work with one of the JSON brackets? Make sure that the HTTP action is set for what you want in the payload tab, and put your JSON in the section down at the bottom "Use Following for Query String/Body"
{ "cusomerId": 9000, "productId": 5 }
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
From your screenshot it looks like you are using the POST HTTP action so make sure that dropdown is set appropriately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It works for single transaction only in Alteryx via Input tool and Download
tool (http post). I'm looking for bulk automation. In this example, I
wouod like to upload three records at once.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Could you put these into the text input tool in the beginning of the workflow and then use the query from string and use the field that corresponds to the JSON in the text input? It should then execute one call for each row which would accomplish your objective.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I think it will work. Let me try later today.
However, how will the new record will be recognised in such case?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
There will be one row coming out of the download tool for each url and payload passed in. You can parse the JSON results from the download data column using the JSON Parse tool.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you very much for the tips. This is now resolved.
Awesome! @BrandonB
I ended up like the workflow snapshot attached. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for sharing!
