ALPHA: How to access API errors payload on fail?

I am executing an api request in alpha, I want to access the api error response and success response messages and create dynamic toast using the messages from api response.

How to access the response? which object i have to use to get?

Is there a way to access this in after response custom code?

On success I am able to access via a output mapping local variable.

@Sam @Simphiwe @Eldho

Hi @Vignesh-U you can store the response on local like here:

Then use custom code after api call to access it and store it in a separate variable

4 Likes