Notifications
Announcements
No record found.
Hello all,
We have a code which opens a record in a new tab on click of ribbon. We are shifting now to dynamics and we want the record to open in new session inside of dynamics instead of new tab (As dynamics now has options to open record in session inside same app)
Is there any JS code which we can write for achieving the same?
Thanks
Hi,
Have you tried using the App Profile manager API?
Within the APM you can create a new session via the Microsoft.Apm.createSession() function.
Please check: learn.microsoft.com/.../createsession for reference.
Kind regards,
Sebastiaan
Further Update.
I was able to achieve the scenario by setting options value when usin xrm.navigations (openinnewwindow = false). It will open in new session inside dynamics rather than new tab in chrome.
There are still 2 issues left with this.
When having a loop which has more than 1 form it just opens one of the form in new session and other gets missed
When trying to open an URL using OpenUrl of xrm.navigation i cannot give the option to openinnewwindow. So opening an url is still now possible with this approach
If anyone has any solution it will be helpfull
hello Sebastiaan Klaver,
Thanks for the update. this really helped me upto a point
I also have a requirement where i can open an url in a new tab inside dynamics but cant get it to work witg createtab or create session as they take entity reference.
What can i use for that purpose?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 73 Super User 2025 Season 2
Daniyal Khaleel 42 Most Valuable Professional
Scott Jackson UK 22