From 23a7b85f367be0c9cd05fc17e515615822a022a8 Mon Sep 17 00:00:00 2001 From: Derek Finlinson Date: Tue, 20 Sep 2016 13:49:52 -0600 Subject: [PATCH] Fix test for openQuickCreate to pass Travis build --- xrm/xrm-tests.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xrm/xrm-tests.ts b/xrm/xrm-tests.ts index f3f4576b02..baec973262 100644 --- a/xrm/xrm-tests.ts +++ b/xrm/xrm-tests.ts @@ -6,7 +6,7 @@ window.Xrm.Utility.alertDialog( "message", () => {} ); parent.Xrm.Page.context.getOrgLcid(); -/// Demonstrate clientglobalcontext.d.ts +/// Demonstrate clientglobalcontext.d.ts function _getContext() { @@ -72,7 +72,7 @@ if (Xrm.Page.data.process != null) /// Demonstrate v7.1 Quick Create form -Xrm.Utility.openQuickCreate(( newRecord ) => { alert( `Newly created record Id: ${newRecord.id}` ); }, "account" ); +Xrm.Utility.openQuickCreate("account").then(( newRecord ) => { alert( `Newly created record Id: ${newRecord["id"]}` ); }); /// Make all controls visible. @@ -119,7 +119,7 @@ optionSetAttribute.controls.get(0).setFocus(); var level: Xrm.Page.ui.FormNotificationLevel; level = "ERROR"; -Xrm.Page.ui.setFormNotification("Test", level, "uniqueId"); +Xrm.Page.ui.setFormNotification("Test", level, "uniqueId"); /// Demonstrate Requirement Level and Submit Mode both via string parameters and String Literal Types @@ -133,5 +133,3 @@ attribute.setSubmitMode(submitMode); attribute.setSubmitMode(submitMode); attribute.setRequiredLevel(requirementLevel); attribute.setRequiredLevel(requirementLevelString); - -