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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Save all items in a Subgrid?

(0) ShareShare
ReportReport
Posted on by 99

I have a a subgrid that shows different product options. There is a field called "Selected Option" that basically indicates which option the client has selected. There can only be one option so I have a Javascript that will iterate through the subgrid and set all the other options to False when an option is selected to ensure we only have one option.

The script is working, However, it does not seem to save the other rows. only the one that was changed. It makes the change but after refreshing it does not save the other rows in the table. Is there a way to save all values in the Subgrid?

When I try put Xrm.Page.data.entity.save(); after my code I get an error "save in progress". 

Any ideas how I can achieve this?

I have the same question (0)
  • Suggested answer
    Charan Raju C R Profile Picture
    7 Moderator on at

    Hi,

    Better you update all other sub-grid records using Web API instead of row context. After updating all the records, refresh the sub-grid to show the updated field values.

  • mykedeabreu Profile Picture
    99 on at

    Can you provide some guidance on the code for this? I am familiar with the CRM builder but not sure what the code would look like.

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…

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
BillurSamdancioglu Profile Picture

BillurSamdancioglu 95 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 87 Super User 2025 Season 2

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans