in Education by
Could anybody give any piece of advice, or code, or documentation link where I can found: how to bind 'entity creation' after dialog is closed with positive result, and change some field on his parent entity, if dialog is closed with negative (cancel) status? I also want to know how to pass data from and to dialog. I am talking about custom aspx dialog (like dlg_closeopp.aspx) not standard dialog which is 'Process' entity. I call my dialog with the following js code which is 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 Anything here } } I need to create an activity if the user-chosen data on the dialog meets my conditions. Thank you in advance. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
To pass entity data to the dialog: oUrl.get_query()['DialogId'] = dialogId; oUrl.get_query()['ObjectId'] = entityId; oUrl.get_query()['EntityName'] = objectTypeCode; Use the callback to get the result: ret_val.setCallbackReference(function (result) { //created record based on result }); Use can use the SDK to create records based on the result.

Related questions

0 votes
    Friends, I have a contact us/Inquiry form in my website. I want to generate a lead in Sales force CRM on ... any link for API. Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    I have some wizard-like pages in my application, its keeping state while navigating between small steps, the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    2- What values must be inserted in Insert table dialog box to create a table ? Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    I would like to write a plug-in that will allow a custom written CRM to read and write to their ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    I have created a plugin and used a reference to another project (DLL) I have created. The problem ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    I have created a plugin and used a reference to another project (DLL) I have created. The problem ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    What are the benefits of using Salesforce CRM?...
asked Nov 12, 2020 in Technology by JackTerrance
0 votes
    I have an incoming json object that represents the data pulled from a database structure. I would like to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 24, 2022 in Education by JackTerrance
0 votes
    Department and store model. They are a one to one relationship. when I do the (Include) only some ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    I have two tables. Orders OrderID | UserID | OrderTotal 1 | 1 | 100 2 | 2 | 110 3 | 1 ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Which forms has a relation that possesses data about an individual entity? (a) 2NF (b) 3NF (c) ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    Which forms has a relation that possesses data about an individual entity: (a) 2NF (b) 3NF (c) ... originated from Normal Forms in chapter Normalization of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    In order to encapsulate and pass the collected log data to the output, which components must be used along with tLogCatcher? tWarn tDie tStatCatcher tAssertCatcher...
asked Mar 24, 2021 in Technology by JackTerrance
0 votes
    What is a Subjob and how can you pass data from parent Job to child Job?...
asked Mar 18, 2021 in Technology by JackTerrance
...