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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Xrm.Page.ui.close() not closing all entity instances.

(0) ShareShare
ReportReport
Posted on by 255

Hi,

We are using Xrm.Page.ui.close() to close entity form on click of ribbon button.

But one scenario, we need to close twice times (click twice) to exit the window, when we are using

Xrm.Utility.openEntityForm on same form.

Any way to close all instances of entity form. Please suggest.

Regards,

Abhishek.

 

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    The Close will often cause the previous form to be shown and so if you are opening one record from another, the close will simply move you back to the parent.

    You can see similar behaviour when you use the 'Save and Close' button.

    There isn't much you can do about this other than using window.top.close to force the browser window to close - however this wouldn't work in the tablet or outlook client.

    Hope this helps,

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans