Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 81 Super User 2025 Season 2
Gerardo RenterÃa Ga... 49 Most Valuable Professional
#ManoVerse 40