Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Model Dialog Xrm

Posted on by 10

8233.asdf.png

Hi EveryOne,

i just open model dialog through field change using Xrm.Navigation.navigateTo

But i cannot acces any form data like account name from model popup web resource

How to get Xrm.Page from Model Dialog Popup

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Model Dialog Xrm

    I believe the main reason is because you created the question using one account - community.dynamics.com/.../nihmath8092 and now you're trying to mark the reply using the other - community.dynamics.com/.../nihmath-community.

    Just log in using the proper account and you will be able to close the thread.

  • RE: Model Dialog Xrm

    Sorry Andrew i try to do that but it shows "You do not have permission to update this reply"

    i dont know why its happen

    3652.Q1.png

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Model Dialog Xrm

    Hello,

    If my reply (or replies) answers your question take a minute and verify the answer. You can do it by clicking "Yes" at the top of the reply (or replies) under the label "Does this answer your question?"

  • RE: Model Dialog Xrm

    Thank You Andrew. Its working...

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Model Dialog Xrm

    With the unsupported approach, I meant usage of parent/opener/other combinations.

    If you think that passing of the data is not efficient - you can pass the Id of the record to the webresource and use odata (Xrm.WebApi will not be available inside the code of the webresourcce so you will have to use xmlhttprequest/fetch) to get the data. Good luck.

  • RE: Model Dialog Xrm

    Thank you Andrew

    But in my case there is no way for panic because i just using Xrm.navigate.navigateTo which is supported by microsoft but i can't able to access form data from model dialog actually i need to display form data in model dialog

    i think pass all values with the help of data parameter in url is not an efficient  way. So there is any other way to access all form data like Xrm.Page

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Model Dialog Xrm

    Hello,

    I'm afraid that the ways you are trying to use are not supported.

    If you want to pass some value you will have to use the "data" attribute when you invoke the dialog and parse the data from the webresource url. Check this post - butenko.pro/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans