From f979ac085955be188222c0023c6836bc55bcc947 Mon Sep 17 00:00:00 2001 From: Derek Finlinson Date: Thu, 7 Mar 2019 10:14:32 -0700 Subject: [PATCH 1/3] Fix openErrorDialog JSDoc --- types/xrm/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index 597ad39ce8..b312175d4e 100644 --- a/types/xrm/index.d.ts +++ b/types/xrm/index.d.ts @@ -4372,8 +4372,7 @@ declare namespace Xrm { /** * Displays an error dialog. - * @param confirmStrings The strings to be used in the confirm dialog. - * @param confirmOptions The height and width options for alert dialog + * @param errorOptions An object to specify the options for error dialog. */ openErrorDialog(errorOptions: Navigation.ErrorDialogOptions): Async.PromiseLike; From ade055321540c73dbed3339b08577712c18d3545 Mon Sep 17 00:00:00 2001 From: Derek Finlinson Date: Thu, 7 Mar 2019 10:26:50 -0700 Subject: [PATCH 2/3] Fix lint error --- types/xrm/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index b312175d4e..f7029be401 100644 --- a/types/xrm/index.d.ts +++ b/types/xrm/index.d.ts @@ -4372,7 +4372,7 @@ declare namespace Xrm { /** * Displays an error dialog. - * @param errorOptions An object to specify the options for error dialog. + * @param errorOptions An object to specify the options for error dialog. */ openErrorDialog(errorOptions: Navigation.ErrorDialogOptions): Async.PromiseLike; From 59a50f52c9f9973c3d2b61232ce66b72c466f1c5 Mon Sep 17 00:00:00 2001 From: Derek Finlinson Date: Thu, 14 Mar 2019 14:49:53 -0600 Subject: [PATCH 3/3] Update createRecord response type --- types/xrm/index.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index f7029be401..322af535d7 100644 --- a/types/xrm/index.d.ts +++ b/types/xrm/index.d.ts @@ -4762,7 +4762,7 @@ declare namespace Xrm { * @returns On success, returns a promise object containing the attributes specified earlier in the description of the successCallback parameter. * @see {@link https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/xrm-webapi/createrecord External Link: createRecord (Client API reference)} */ - createRecord(entityLogicalName: string, record: any): Async.PromiseLike; + createRecord(entityLogicalName: string, record: any): Async.PromiseLike; /** * Deletes an entity record. @@ -4823,6 +4823,14 @@ declare namespace Xrm { updateRecord(entityLogicalName: string, id: string, data: any): Async.PromiseLike; } + /** + * Interface for the WebAPI CreateRecord request response + */ + interface CreateResponse { + entityType: string; + id: string; + } + /** * Interface for the Promise error response arguments */