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 :
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

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

#3
Scott Jackson UK Profile Picture

Scott Jackson UK 22

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans