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
15 - Aurora
15 - Aurora

@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