web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

addOnPostSave 9.1 on-premise

(0) ShareShare
ReportReport
Posted on by 150

I am trying to use formContext.data.entity.addOnPostSave(myFunction) using the Unified Interface in 9.1 on-premise. It doesn't seem to work. I am guessing addOnPostSave is not supported in the Unified Interface for on-premise? It works fine for me in the cloud with the same exact code.

PostSave Event (Client API reference) in model-driven apps - Power Apps | Microsoft Docs

When I try to use it in on load I get it this:

TypeError: formContext.data.entity.addOnPostSave is not a function
at addMessageToOnPostSave (https:///webresources/testonloadnewui:3:29)
at il.executeFunction (https:///uclient/scripts/app.js?v=1.4.3961-v91onpremise:1099:3413)
at il.execute (https:///uclient/scripts/app.js?v=1.4.3961-v91onpremise:1099:3058)
at https:///uclient/scripts/app.js?v=1.4.3961-v91onpremise:102:20676
at i (https:///uclient/scripts/app.js?v=1.4.3961-v91onpremise:219:91)
at V._executeIndividualEvent (https:///uclient/scripts/app.js?v=1.4.3961-v91onpremise:102:20652)
at V._executeEventHandler (https:///uclient/scripts/app.js?v=1.4.3961-v91onpremise:102:18259)
at Object.execute (https:///uclient/scripts/app.js?v=1.4.3961-v91onpremise:102:15586)
at w._executeSyncAction (https:///uclient/scripts/app.js?v=1.4.3961-v91onpremise:719:692)
at w._executeSync (https:///uclient/scripts/app.js?v=1.4.3961-v91onpremise:719:419)

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    This error just means that this handler is not supported in on prem instance yet.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 67

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans