Quantcast
Channel: Sam's Activities
Viewing all articles
Browse latest Browse all 3363

call case quick create form from account ribbon

$
0
0

Hi, I am trying to call the case quick create form from account ribbon, basically, I want to create associated case  from this button, based on the MSDN reference, I came out the below javacript to call the webapi, for some reasons, it didn't work correctly, please help

function buttonClick(){
    debugger;
    var setName = { name: Xrm.Page.getAttribute("name").getValue() };
    var accountid = Xrm.Page.data.entity.getId();
    var parentAccount = {
                          entityType: "account",
                          id: accountid,
                          name: setName
    };
    var parameters = {};
    parameters["customerid"] = accountid;

    Xrm.Utility.openQuickCreate("incident", parentAccount, parameters);

}



Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>