I am passing following parameter to a form
var parameters = {};
//Set the Parent Customer field value to “Contoso”.
parameters["regardingobjectid"] = orderID;
parameters["regardingobjectidname"] = formContext.getAttribute("name").getValue();
parameters["regardingobjectidentitytype"] = "salesorder";
// Define the entity name to open the form
var entityFormOptions = {};
entityFormOptions["entityName"] = "email";
entityFormOptions["formId"] = "GUID";
// Open the form
Xrm.Navigation.openForm(entityFormOptions, parameters).then(
function (success) {
console.log(success);
},
function (error) {
console.log(error);
});
However, following line of codes doesn't work as it sets the entity type to default one which account instead of Sales Order
parameters["regardingobjectid"] = orderID;
parameters["regardingobjectidname"] = formContext.getAttribute("name").getValue();
parameters["regardingobjectidentitytype"] = "salesorder";
What will be the parameter I need to set for the Entity Type here?