Hi all,
I have a ribbon button on an entity that when clicked launches a form on a different entity and opens a specific form. This works fine in the Classic Interface but doesn't seem to honor opening a specific form in the new UI.
In ribbon workbench I have the following:

and the JavaScript that is called is as follows:
function OpenSpecificForm(primaryControl)
{
const FORMID = "A696976B-EA8A-42F3-B4DC-F35DC9204D58";
var formContext = primaryControl;
var parameters = { formid: FORMID };
var entityFormOptions = {};
entityFormOptions["entityName"] = "new_entity_name";
var recordId = formContext.data.entity.getId();
var recordName = formContext.getAttribute("new_name").getValue();
if (recordId != null) { parameters["new_targetentityfieldid"] = recordId; }
if (recordName != null) { parameters["new_targetentityfieldname"] = recordName; }
Xrm.Navigation.openForm(entityFormOptions, parameters);
}
Have I missed anything obvious?
Thanks in avdance
*This post is locked for comments
I have the same question (0)