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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Open new record in CSW session

(0) ShareShare
ReportReport
Posted on by 35

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

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

    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

  • noobCoder Profile Picture
    35 on at

    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

    Thanks

  • noobCoder Profile Picture
    35 on at

    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?

    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 32

#2
ManoVerse Profile Picture

ManoVerse 31 Super User 2026 Season 1

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans