diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index 597ad39ce8..322af535d7 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; @@ -4763,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. @@ -4824,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 */