Skip to content

Commit 0c5402d

Browse files
authored
Merge pull request #212 from delegateas/205_post_save_event
205 Extended PageEntity with addOnPostSave
2 parents 9c591e5 + 71d124e commit 0c5402d

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
@@ -236,4 +236,13 @@ declare namespace Xrm {
236236
*/
237237
setSearchQuery(text: string): void;
238238
}
239+
240+
interface PageEntity<T extends AttributeCollectionBase> {
241+
/**
242+
* Adds a function to be called when save event has completed; either successfully or with a failure.
243+
* @param functionRef The function to add to the PostSave event.
244+
* The execution context is automatically passed as the first parameter to this function.
245+
*/
246+
addOnPostSave(functionRef: (context?: SaveEventContext<this>) => any): void;
247+
}
239248
}

0 commit comments

Comments
 (0)