In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

API reponse filter

luis_boni97
6 - Meteoroid

Hi, 

 

I have a API response, I'd like to know how can I filter if the Http fails to send and email if this happen 

 

 
 
 
 

Capture.PNG

 

Thanks

2 REPLIES 2
OllieClarke
16 - Nebula
16 - Nebula

@luis_boni97 If you're expecting a 302 response then your filter can be as simple as

CONTAINS([DownloadHeaders],'HTTP/1.1.302')

construct your email using a report text tool connected to the false output of this filter, and use a formula tool to set the To recipient of the email. 
Then for every call which doesn't get a 302 response an email will be sentimage.png

Hope that helps,

 

Ollie

luis_boni97
6 - Meteoroid

Hey @OllieClarke , Thanks for your help and time