Hi Fellas
First of all, thanks for checking out my question. I have an inquiry whether we can utilise the following client api:
Xrm.Navigation.openForm(entityFormOptions,formParameters).then(successCallback,errorCallback);
to open up Virtual Entity Form.
We used this approach for 9.0 on premise and worked fine, by also customising plugin to handle the record (Single Retrieve Plugin to use the passed guid and search on temporary table for expected dataset). However, after upgrading to 9.1, it seems that we encounter an error on Front-End side, the plugin is not even hit at all, Here is the error:
{errorCode: 2415919106, message: "Navigation was cancelled by the user.", code: 2415919106, title: "Navigation Cancelled", raw: "{\"name\":\"UciError\",\"errorCode\":2415919106,\"errorPa…blockErrorReporting\":false,\"errorAnnotations\":{}}"}
code: 2415919106
errorCode: 2415919106
message: "Navigation was cancelled by the user."
raw: "{\"name\":\"UciError\",\"errorCode\":2415919106,\"errorParameters\":[{\"name\":\"PageName\",\"value\":\"EditForm\"},{\"name\":\"Options\",\"value\":[{\"name\":\"source\"},{\"name\":\"sourceBrowsingContext\"},{\"name\":\"targetBrowsingContext\",\"value\":\"tab-id-0\"},{\"name\":\"replaceState\"}},\"blockErrorReporting\":false,\"errorAnnotations\":{}}"
title: "Navigation Cancelled"
The code to try opening the form is as the following:
var entityFormOptions = {}; entityFormOptions["entityName"] = "xts_statement_history"; entityFormOptions["entityId"] = statementId; parent.Xrm.Navigation.openForm(entityFormOptions).then( function (success) { }, function (error) { console.log(error); });
Is there any identified issue when implementing the aforementioned code on 9.1 to call VE Form? We just need to display record, so read only mode is fine. If there is any possible workaround if that code is not applicable anymore in 9.1 on premise, that would really help us.
Many thanks in advance and look forward for any assistance!
Regards,
Jonas