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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to get session ID through JavaScript?

(0) ShareShare
ReportReport
Posted on by 162

SessionID.png

This might be a stupid question, but I cannot find answers from MS documents.

From JavaScript, how can I get the session ID as shown above?

Thanks a million,

Ning

I have the same question (0)
  • Guido Preite Profile Picture
    54,086 Moderator on at

    I don't think there is a way (also unsupported) to get that value.

    Do you have a specific reason to have it? Technically should be the same as putting a GUID inside the sessionStorage (and I am not suggesting to do)

  • Verified answer
    Ning Zhu Profile Picture
    162 on at

    It is in sessionStorage, pretty easy to read

           var storage = window.top.sessionStorage;

           var sessionId = storage.getItem("UNEXPECTED_TERMINATION");

    Hope, that can be useful to someone who are facing the same issue, sometime, sessionId will take 1 second to load, so add a timeout statement over will be a great idea

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 156

#2
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans