Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

addOnPostSave 9.1 on-premise

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)

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: addOnPostSave 9.1 on-premise

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans