// how to Call action Using javascript function hanleWebLead() { var actionName = new_actioncallusingjs; //defien action input parameters var aactionParameters = { "topic" : $( "#topic" ).val(), "firstName" : $( "#firstName" ).val(), "lastName" : $( "#lastName" ).val() }; var actionResponse = activieCustomAction(actionName, aactionParameters); alert(actionResponse.newLeadUrl); } function activateCustomAction() { var Id = Xrm.Page.data.entity.getId().replace( '{' , '' ).replace( '}' , '' ); var serverURL = Xrm.Page.context.getClientUrl(); // pass the id as inpurt parameter var data = { ...
Comments
Post a Comment