microflow return type of HttpResponse

0
Hi, I am going through https://docs.mendix.com/howto/integration/publish-rest-service/ and the microflow is supposed to return a httpResponse variable. But the dropdown type in the end activity does not include System.HttpResponse. Hence an error. Any ideas what I am missing here?  
asked
4 answers
0

Add an export Mapping to the service. 
 

answered
0

Have you followed steps 17 and 18 where you create the new HttpResponse object? You just need to return this new object at the end of the microflow.

If you have done this and it still doesn’t work, can you share a screenshot of your microflow where you create this object and attempt to return a value?

Hope this helps.

answered
0

Hi,

Given the Export to JSON in the step before the arrow, you create it here. So you export $NewHttpResponse

answered
0

So I worked out what is wrong.

I have to set return to object and the type to system.httpResponse.

answered