RE: how to create dialog in UCI
Hi Andrew,
Thanks for the post . Looking forward for the video on how to create dialogs for UCI interface that includes passing parameters to dialog and getting the results back .
I have one question related to the getting lead id and pass the same to the navigate function as shown below :
currently am getting lead id in classic approach which is working fine . Do you know the alternate way of getting the lead id as xrm.page is unsupported in UCI mode ? Appreciate your help on this .
var id = Xrm.Page.data.entity.getId();
var pageInput = {
pageType: "webresource",
webresourceName: "testribbon",
data: encodeURIComponent(id)
}
I have tried below method to retreive lead id . However i did not see any method that has lead id .
Any help is highly appreciated .
var queryString = location.search.substring(1);
var params ={};
var queryStringParts = queryString.split("&");
for(var i=0; i< queryStringParts.length; i++) {
var pieces = queryStringParts[i].split("=");
Regards,
Harish Ch