I need to get the current session id in my web resources. I do not see it in XRM documentations. can we catch hold of current session id in web resource files by any means?
Hello, you can try this line:
var id = Xrm.Page.data.entity.getId();
It should work!
Thanks!
Community Support Team - Esteban
If this Post helps, then please consider Accept as solution to help the other members find it more quickly.
Hi,
I am not sure about business need but i tried below logic to find session id
Thanks,
Pradeep Rai.
Please mark this as VERIFIED if it helps.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156