How to show Server Action Step Response Text in Notifications

Hello,

We can create Responses with Status Codes in Server Action Steps. But how can we get the Response Text we have set in the steps to a notification via App Connect?

The reason for this is whenever I set a Response as a Step, I would like to get the error message or Response Text I have set there to notify the users. The Response Text is not in the Server Connect lastError.message and lastError.Response. Or am I missing something?

Thank you.

If you are using a response code in your server action you should find its content in app connect within the data picker in a server connection values in a section called lasterror

image

Hello @Hyperbytes, Either I am a bit sleepy or wants an instant response from guys like you. :hot_face:
I was able to get the Response Text, and yes, it is lastError.response as what is in your screenshot. I think I have a problem in concatenating the response with my notification message that’s why it doesn’t appear. So sorry to have created this topic without doing anything to troubleshoot from my side.

Thanks for your assistance and time. :slight_smile:

If you need anything else just ask, as to concatenation generally the “+” sign works well but the picker also provides a concatenate function.

Thanks @Hyperbytes. I think “+” is better because using “.concat” makes it a little bit longer and complicated. :smile:

Agreed, concatenate is a fallback in my book

if you work with form and server action lasterror does.t work. You can see status, but not any message from your response.text (response code 200). But if you use ‘data’ variable instead of ‘status’ you can see this text and do some notifications to user.

This is a 4 years old topic. If you have any issues returning a response from your server connect form, then post a new topic with detailed description.