Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Stay on same view when Save and Close on child entity

(0) ShareShare
ReportReport
Posted on by

Hi there,

We have a issue with the Save and Close command on CRM 365 8.2 on premise.

We want to be able to open a Entity, let's called it Event. This entity has related entities, e.g. Activity. When opening the related entity (activity) i get a related view showing me the activies for the Event. So far so good. 

However, when opening a activity from that view, for example a task, it opens a new window (in the same window). When editing the data and clicking Save and close, it return back to the Event form. I want it to just close the opened window, and return to the Activity view from where i opened the task.

I tried this function, but that doesn't work:

function SaveAndClose()
{
    Xrm.Page.data.entity.save();
    if (window.parent.opener != undefined)
    {
        window.close();
    }
}


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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans