Hi everyone, I am trying to get the error response from an http request and then say if it returned this error then do another activity.
I have my response content variable already created and my url
Hi everyone, I am trying to get the error response from an http request and then say if it returned this error then do another activity.
You can create a variable in the output properties on response status will return you the code and response content will give you the messsage
After getting you can use in if activity like
ResponceContent.Contains(âErrorâ) or responseStatus=200
Something like this
Regards
Sudharsan
Hi @Sudharsan_Ka ,thank you for your response,
yes I have output Response content created already, the âstrJsonâ
So I have 404 and 101 error, so I need to specify the error,
so I can say ResponceContent.Contains(â404 Errorâ), like that?
strJson.contains(â404 Errorâ)
Or create a new variable in the Response status and it will be integer
You can also give condition like ResponseStatus =404
Thank you so much
So if that string appears more than once or that value then I do something else
if: Value cannot be null (Parameter âsourceâ)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.