Skip to main content

Notifications

Announcements

No record found.

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)

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 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!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans