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"