Skip to content

Commit e05fdcb

Browse files
author
Mai An Krause Bernt
committed
Extended PageEntity with addOnPostSave
1 parent 800e3f4 commit e05fdcb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/XrmDefinitelyTyped/Resources/Extensions/xrm_ext_9.1-.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,13 @@ declare namespace Xrm {
9191
*/
9292
setVisible(visibility: boolean): void;
9393
}
94+
95+
interface PageEntity<T extends AttributeCollectionBase> {
96+
/**
97+
* Adds a function to be called when save event has completed; either successfully or with a failure.
98+
* @param functionRef The function to add to the PostSave event.
99+
* The execution context is automatically passed as the first parameter to this function.
100+
*/
101+
addOnPostSave(functionRef: (context?: SaveEventContext<this>) => any): void;
102+
}
94103
}

0 commit comments

Comments
 (0)