Just had to do this for the 2nd time, bring it to the UI @George
Bump, I’m sure this takes 2 minutes to add to the UI? Unless you need to implement this for other server targets than NodeJS
Bump
Default is indeed the json output type as all steps data output that.
So just be clear you want to overwrite and skip that output and output something completely different? What output type would you like to set? Only text?
Do note that such server actions won’t be recognized by app Connect in the front end as their data won’t be recognized.
So what are you trying to achieve?
Imagine I'm building a Server Action to serve as a webhook. So a payment provider calls that Server Action and expects a literal text/plain "OK" string
Hey @apple,
A couple of things that might help...
User karh created a custom response extension called 'Better Response v2' that looks like it will do what you need. You'll just have to set the custom header content type that you want. Check it out here: 🎉 BetterResponse v2
While it would be a nice feature to have natively, I can imagine it will create a support nightmare for the Wappler team if users can play with the response options. Maybe the extension is the better way to go.
On a side note, generally you shouldn't have to include "OK" as plain text for success - the generally accepted standard is to send the correct http status code, 200=success, and the other end of your webhook looks for this; or whatever other code that best describes the error/issue.
Hope that helps