Retrieving obj from microflow in a widget missing parameters

0
We customized the LoginForm widget and were busy adding a Token for the hybrid app login. To achieve this I call a microflow from the widget which generates the token and stores it server side. I also attempt to save the token on the mobile device. However, the obj I retrieve from the does not have the attribute I set in the microflow.   This is the mx.data.action call: mx.data.action({ params: { applyto: "selection", actionname: this.mfGenerateToken, guids: [this._context.getGuid()] }, callback: dojoLang.hitch(this, function (obj) { this._context.set("TokenToSet", obj[0].jsonData.attributes["TokenToSet"].value); }), error: dojoLang.hitch(this, function (error) { this._loginFailed(); }) });   The object is a non-persistant entity, that gets set in the microflow I call. Does anybody have a hint why I am not able to retrieve the attribute "TokenToSet"
asked
1 answers
1

Please check your security. 

If you don't have access you can not see the data

Please note that this line of code is using the Mendix API

this._context.set("TokenToSet", obj[0].jsonData.attributes["TokenToSet"].value);
// better to use
this._context.set("TokenToSet", obj[0].get("TokenToSet"));

see: https://apidocs.mendix.com/6/client/mendix_lib_MxObject.html

 

answered