The success notification can only show a single value (by default it's "Success"), it will not show any message returned from the service. While the error message can show what is returned as an error from the service. You can customize this in the service itself using a try -> catch, then a throw statement to send the text you want to return.
Thanks Adam. Took some testing, but I think I understand how that option for services in the data panel to "show error notifications" works now. For a moment I thought the statement "Note: include the string [server-message] to include the response from the server" meant include it from the Error object's message.. but it literally meant have [server-message] in the box and that gets replaced with the error's message.
Hi Adam - Is there a way to only show the error message (dynamic) that I'd like to show instead of the complete chain of services that were called? For example:
"Test error message" is the exact message that my SQL stored procedure is kicking back. This message would typically be something more specific, i.e., "Work Order ##### cannot be created as it already exists." I would like the end user to see that only instead of the complete service stack trace.