could give piece of advice, or code, or documentation link can found:
- how bind 'entity creation' after dialog closed positive result,
- and change field on parent entity, if dialog closed negative (cancel) status?
i want know how pass data , dialog.
i talking custom aspx dialog (like dlg_closeopp.aspx) not standard dialog 'process' entity.
i call dialog following js code bound on onfieldchange event of contact entity:
function onfieldchange() { var ourl = mscrm.crmuri.create("/sfa/conts/dlg_newone.aspx"); var callbackfunction = mscrm.utilities.createcallbackfunctionobject("performactionafterdialogclose", this); var ret_val = openstddlgwithcallback(ourl, document, 450, 420, callbackfunction); } function performactionafterdialogclose(ret_val) { if (ret_val) { //do here } }
i need create activity if user-chosen data on dialog meets conditions.
thank in advance.
to pass entity data dialog:
ourl.get_query()['dialogid'] = dialogid; ourl.get_query()['objectid'] = entityid; ourl.get_query()['entityname'] = objecttypecode;
use callback result:
ret_val.setcallbackreference(function (result) { //created record based on result });
use can use sdk create records based on result.
Comments
Post a Comment