I'm trying to open a new form to the side of an existing record. However, when I try, I open the form in the same window instead of the side. The following is my code:
var entityFormOptions={};
entityFormOptions["entityName"] = "account";
entityFormOptions["windowPosition"] = 2;
var formParameters={};
formParameters["email"]="test@test.com";
Xrm.Navigation.openForm(entityFormOptions, formParameters).then(
function(success){
console.log(success);
},
function(error){
console.log(error);
});