Yes, it is possible to fetch the Sitemap Title Name in Dynamics 365 using JavaScript, but not directly through a supported API. The Sitemap Title Name is not exposed through the official Client API, but you can retrieve it using DOM manipulation. However, DOM-based approaches are not supported by Microsoft and may break with future updates.
You can use JavaScript to query the Sitemap Title from the navigation menu using document.querySelector
. Here's an example:
var sitemapTitle = document.querySelector(".areaTitle").innerText;
console.log(sitemapTitle);
F12
) in your browser.If you want to retrieve the current sitemap area in a supported way, you can use the Xrm.Utility.getGlobalContext().getCurrentAppProperties()
method:
Xrm.Utility.getGlobalContext().getCurrentAppProperties().then(function(app) {
console.log("App Name: " + app.appName);
console.log("App Unique Name: " + app.uniqueName);
});
🔹 This gives you the App Name but not the specific sitemap area.
🔹 For precise sitemap details, you may need to retrieve navigation metadata via a custom web resource or plugin.
getCurrentAppProperties (Client API reference)
DAnny3211
367
Abhilash Warrier
137
Super User 2025 Season 2
Martin Dráb
82
Most Valuable Professional