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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Issue in unified interface (Model driven App) unable to set parameters on new form

(1) ShareShare
ReportReport
Posted on by 35

this code is working in web client but not in unified interface, how can fix it in model driven app (Unified interface) ?

var formParameters = {};
formParameters['partyid'] = partid;
formParameters['partyname'] = partname;
formParameters['partytype'] = pratytypeCode;

var entityFormOptions = {};
entityFormOptions.entityName = "phonecall";
entityFormOptions.openInNewWindow = true;


parent.Xrm.Navigation.openForm(entityFormOptions, formParameters).then(
function (success) {

},
function (error) {
console.log(error);
});

I have the same question (0)
  • Nadeem Hassan Profile Picture
    35 on at

    this code is working in web client but not in unified interface, how can fix it in model driven app (Unified interface) ?

    var formParameters = {};
    formParameters['partyid'] = partid;
    formParameters['partyname'] = partname;
    formParameters['partytype'] = pratytypeCode;

    var entityFormOptions = {};
    entityFormOptions.entityName = "phonecall";
    entityFormOptions.openInNewWindow = true;


    parent.Xrm.Navigation.openForm(entityFormOptions, formParameters).then(
    function (success) {

    },
    function (error) {
    console.log(error);
    });

  • Nadeem Hassan Profile Picture
    35 on at

    this code is working in web client but not in unified interface, how can fix it in model driven app (Unified interface) ?

    var formParameters = {};
    formParameters['partyid'] = partid;
    formParameters['partyname'] = partname;
    formParameters['partytype'] = pratytypeCode;

    var entityFormOptions = {};
    entityFormOptions.entityName = "phonecall";
    entityFormOptions.openInNewWindow = true;


    parent.Xrm.Navigation.openForm(entityFormOptions, formParameters).then(
    function (success) {

    },
    function (error) {
    console.log(error);
    });

  • Suggested answer
    Henry J. Profile Picture
    5,237 on at

    Hi Nadeem,

    Can you share more details on what you're trying to achieve with that code? Why are you using parent.? 
    Do you have an error message?

    Here's the link for the technical documentation of the openForm method you're trying to use. It works in Unified Interface:
    https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-navigation/openform

    Henry

  • Nadeem Hassan Profile Picture
    35 on at

    Hi Henry Jammes,

    there is no any kind of error but not working for unified interface.

  • Suggested answer
    Henry J. Profile Picture
    5,237 on at

    Thanks Nadeem.

    Even in the console (F12)?

    If you can't share more details, I suggest you open a Support Request here to have someone help you troubleshoot this: https://admin.powerplatform.microsoft.com/support

    Henry

  • Nadeem Hassan Profile Picture
    35 on at

    Thanks Henry Jammes,

    Yes there in no any error in console.

    thanks for support link.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Nadeem,

    Please, don't create duplicated threads.

  • Suggested answer
    Johao Larios Profile Picture
    1,795 on at

    Hello Nadeem,

    If you are not getting errors, please create a ticket with MSFT. I don't get why you are using the word "parent". Before opening the ticket I would suggest you please try as is mentioned on this link:

    docs.microsoft.com/.../openform

    Xrm.Navigation.openForm(entityFormOptions,formParameters).then(successCallback,errorCallback);

    I have use it on UCI without issues. But if you use this and you are still getting problems, please create a ticket.

  • Suggested answer
    Johao Larios Profile Picture
    1,795 on at

    Hello Nadeem,

    This was answered in another forum, please verify.

    Regards.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Nadeem,

    I found an answer and it will be posted on my blog today/tomorrow. Subscribe to it or to my twitter to see the notification about new posts.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 49 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans