Hi everyone, I'm new to the community. here is my problem.
I create a block based on a view. the block will take the id of the view as parameter.
when I debug it returns me to the function part (error).
it seems to me that something is wrong but I do not know what
here is my createRecord request that does not work.
Sdk.CreateBlocByViewId = function(viewid){
var entity = {};
entity.pfe_mag_name = "test";
entity["idvuebloc@odata.bind"] = "/mavue(viewid)";
Xrm.WebApi.online.createRecord("bloc", entity).then(
function success(result) {
var newEntityId = result.id;
},
function(error) {
Xrm.Utility.alertDialog(error.message);
}
);
}