Hi All,
I am trying call a microflow from login.html page (custom) using mx.data before sign in the application.
function do_something()
{
var myinput = document.getElementById("myinput");
alert( 'Test:' + myinput.value);
mx.data.create({
callback: function(){
alert( 'Test:' + myinput.value);
mx.processor.xasAction({
error: function() {
logger.error(this.id + "error: error while executing search");
},
actionname: "Mymodule.myMF",
guids: [object.getGUID()]
});
}
});
But I am getting following error-
Uncaught ReferenceError: mx is not defined
at do_something ((login):75)
Can somebody please let me know what is correct way of calling mx.data functions from html.