I am using the Server Request action in an action form to make an API call which only accepts JSON format. But the Post Data field has the following
Put key=value pairs each on separate line. If a Content-Type is set to a json or xml type the data will pe parsed accordingly. Can contain tokens (for example [FirstName]) and My Tokens.
I tried to convert the JSON to key value pairs. It doesnt work.
Thanks for any suggestions.
Hello! It might be best to first upgrade your DNN site from 9.1.1. That version is quite old. It's using hundreds of deleted DNN API endpoints that you may have to fix later, and you're building and using a version of DNN which has known security bulletins. Effectively, you're starting from a place of building a lot of technical debt.
As for My Tokens, you may be better off trying to get support from that vendor. While some people here do/have used that in the past, this is more of a DNN forum. Each extension vendor tends to have a place to ask for support for their various respective extensions.
Oh, I guess I misunderstood that, but My Tokens and Action Form aren't DNN. They're products of DNN Sharp which get installed into DNN.
If this is a DNN question, I'm not sure what you're trying to do. This seems like it could be a development question then. If it is, can you provide more details about what you're doing and how you're doing it? Is this in a module, library, theme, or in something else? What kind of code is creating the server request and action? 🤔
Oh so Action Form isnt DNN? Sorry I am totally new to this platform. I am just trying to build a form with a few fields and a button which when clicked will make an API call. The API only accepts json. The API call works perfect when I test from Postman but the same doesnt work from the action form action called Server Request. I dont know where to ask questions about Action Form or Action Grid. Do you have any suggestions? Thank you!
Maybe nice to know: DNN Sharp upped their game about 7 years ago. Their modules (action grid, action form, my tokens but also scheduler and a workflow engine) were integrated in a full force low code platform. Still running on DNN and a way to be much more productive regarding development. You can check it out on https://www.plantanapp.com/
For DNN context not cheap. Compared to Mendix or Outsystems really affordable.
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.