Decoding form data in a POST message

0
I'm integrating with a system which will send notifications to me when data changes. The notifications are sent as a POST request and the data is form encoded. When I receive the call, the data is in the Content string for the HttpRequest in this format: "userid=12345&appli=1&startdate=1530576000&enddate=1530698753". Is there an easy way to decode this? I could write a java action and do some string manipulation to get the values, but it would be nice if there were a simple Mendix solution
asked
2 answers
0

Have you tried the community commons module option HTMLToPlainText?

image.png

answered
0

Seeing as you're the one publishing the API, why can't you ask the calling party to deliver the data in JSON format so that it's easy to map?

 

Otherwise I don't see any way around taking apart the string to get the data out. The StringSplit action from community commons is helpful for this.

 

 

answered