As it's currently not possible to directly pass a string parameter value from javascript to a Microflow, I would like to achieve my goal using a different approach. The idea is to create a non-persistent object in javascript and pass that one as a parameter to the microflow. The microflow is triggered, but the parameter object keeps being empty :(. Can someone point me in the direction of what is lacking or wrong in the code beneath? function do_something()
{
var myinput = document.getElementById("my_input");
mx.data.create({
entity: "MyModule.myObject",
callback: function(object){
alert(object + ':' + myinput.value);
object.set('myString',myinput.value)
mx.processor.xasAction({
error: function() {
logger.error(this.id + "error: error while executing search");
},
actionname: "MyModule.MyMF",
guids: [object.getGUID()]
});
}
});
}
↧