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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to establish a JS-Webressource as an OnPostSave Event to an editable subgrid?

(0) ShareShare
ReportReport
Posted on by
Hi all,
 
I need to make sure that I use the new, updated data in API calls that get executed onsave of an editable subgrid.
Sadly, my script uses the old, not yet updated data when I add it as OnSave event to the editable subgrid. Is there any way to make it OnPostSave?
I have the same question (0)
  • Suggested answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Hi,
     
    There is no asynchronous function like formContext.data.entity.save(saveOption).then(successCallback, errorCallback) in the functions of the subgrid control.
     
     
    Instead formContext.data.entity.addOnPostSave(myFunction) only applies at the form level.
     
    Best Regards,
    Dengliang Li
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans