web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

D365 CE On Premise 9.1 - open Virtual Entity Form using Client API

(0) ShareShare
ReportReport
Posted on by 65

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\":{}}"}

code2415919106

errorCode2415919106

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

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: D365 CE On Premise 9.1 - open Virtual Entity Form using Client API

    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.

  • Jonas Bunawan Profile Picture
    65 on at
    RE: D365 CE On Premise 9.1 - open Virtual Entity Form using Client API

    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

  • Community Member Profile Picture
    on at
    RE: D365 CE On Premise 9.1 - open Virtual Entity Form using Client API

    Hi Jonas,

    If so, you can open the ticket with Microsoft and ask for support.

    https://admin.powerplatform.microsoft.com/support

    Regards,

    Leah Ju

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 48

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 44 Super User 2025 Season 2

#3
mk1329 Profile Picture

mk1329 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans