Skip to main content

Notifications

Customer Service forum
Unanswered

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

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

  • Community Member Profile Picture
    Community Member Microsoft Employee 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

  • Jonas Bunawan Profile Picture
    Jonas Bunawan 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
    Community Member Microsoft Employee 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.

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,129 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans