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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Unsaved Changes in Account entity.

(0) ShareShare
ReportReport
Posted on by

I have a script running in ON LOAD event, which disable and enables certain address fields based on scenerios. In that script I am also using Setsubmitmode("always") to save the changes. But my record still displays the "unsaved" message. I checked which field is changed and not saving(screenshot below). What should i do to make the changed field save and avoid "unsave" message.

2022_2D00_06_2D00_27_5F00_14_2D00_21_2D00_49.png

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Furqan Majeed,

    This is because you just apply the changes at the client side and it doesn't save to the server. So please add the formContext.data.save() function at the end of your ON Load Event's JS file.

    Please refer to this:

    https://docs.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/formcontext-data/save

    Note: 

     formContext.data.save() function would trigger the ON SAVE EVENT if you add.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 128 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 113

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans