title: Xrm.Navigation.openConfirmDialog return null
body: <p>I am using <code>Xrm.Navigation.openConfirmDialog</code>for confirmation in Dynamics CRM. I wonder if it can return a value on success or failure.  </p>
  
  <p>Below is my source code:</p>
  
  <pre><code>function confirmationBox(promptText, w, h) {
      var confirmationStrings = {
          text: promptText, title: "ConfirmationBox",
          cancelButtonLabel: "No", confirmButtonLabel: "Yes"
      };
      var confirmationDimension = { height: h, width: w };
      Xrm.Navigation.openConfirmDialog(confirmationStrings, confirmationDimension).then(
          function (success) {
              if (success.confirmed) {
                  console.log("Confirmed");
                  return true;
              }
              else {
                  console.log("Not Confirmed");
                  return false;
              }
  
          });
  }
  </code></pre>
  
  <p>and here in below I am calling this function, but the method return <code>null</code> all cases. Any one help to understand why it is not returning anything.</p>
  
  <pre><code>var temp = confirmationBox(promptText, 350, 450);
  console.log(temp);
  </code></pre>