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(); } }