Announcements
No record found.
Hello
when i open my webresource on click of button then I want to retrieve GUID of record from URL through js code..
Thanks & Regards
Hi Yash,
Try this
ribbonworkbench.uservoice.com/.../129783-pass-the-currently-selected-grid-row-s-to-a-custo
Hello Ajayendra I got it through this:
window.top.opener.frames[0].Xrm.Page.data.entity.getId();
for CRM above 2016 version :
I think It might not work in Microsoft Edge Browser .
Hello Yash,
You can use below code snippet to get the ID from URL:
const entityId = getUrlVars()["id"].replace('{', '').replace('}', ''); function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') 1).split('&'); for (var i = 0; i < hashes.length; i ) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; }
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ManoVerse 85 Super User 2026 Season 1
Muhammad Shahzad Sh... 69 Most Valuable Professional
11manish 64