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
Hi Jonas,
If so, you can open the ticket with Microsoft and ask for support.
https://admin.powerplatform.microsoft.com/support
Regards,
Leah Ju
Hi Leah
Thanks for responding. Yes, we are using the same code to open common entity form and it works fine, seems like this error validation happens just for VE form.
The browser that I used was Microsoft Edge Chromium.
It seems that using navigateTo does not encounter the same error, though, but this will change the UX for our users and the browser that is allowed is just the Microsoft Edge Chromium.
Regards,
Jonas
Hi Jonas,
Can you open common entity form through same code, or only virtual entity can't be opened?
And what browser you are using?
Maybe you can try to use other browser to test again.
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,802 Super User 2024 Season 2
Martin Dráb 229,129 Most Valuable Professional
nmaenpaa 101,154