You can achieve this with the rest-service module from the app-store (I don't know the difference with the built-in version of Mendix) // EDIT 1 (sorry for skipping some steps Andy):
All details are in https://github.com/mendix/RestServices/blob/mx5-master/README.md
Hi Chris, As level 7 this might sound like easy peazy but for me as level 2 this sounds not like advanced or expert but more like Stephen Hawkings brilliancy. Step 1 no problem there. Step 2 would be creation of the object that fills the entity I created in step1.
Step 3; where do I call something after startup (some settings) ?
- Do i call my microflow after the activity RestServices.CreateMicroflowServiceWithPath in MF RestServices.CreateMicroflowService ?
- How do I define it has to call MF in step 2 with HTTPMethod.POST ?
Thanx a million if you can help me with this
Okay I allmost have it. My microflow gets called when I post something to my Restservice. I would think it should work like below but it doesn't can anybody point me in the right direction ?
On startup my webservice gets started and when I post something my microflow to proces the POSTED data gets started. In my microflow: Parameter/Object FillData from RequestResult entity (Restservice domainmodel). Create object that fills my entitity/attribute with $FillData .ResponseBody (Commit = Yes). A record is created in my entity but with no data. I probably miss one step.