Hi All,
currently i am using "Xrm._page.getUrl()" for get viewID but i am getting error. please see given below error.
For get selected view id i am using this code.
var urlParams = new URLSearchParams(Xrm._page.getUrl());
var viewId = urlParams.get("viewid").replace("{", "").replace("}", "");
but it's not working well.
please suggest best solution.