Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Trigger script onsave of a editable subgrid

(1) ShareShare
ReportReport
Posted on by 110

Hi

   I have an editable subgrid. I want to trigger an script onSave of the grid after changing the content of records in the grid. How to trigger a script on save event of the grid?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trigger script onsave of a editable subgrid

    Just go to Form Editor.

    Click your grid and click properties button on top of the form editor window.

    Go to Events Tab.

    Open Event Dropdown from the list.

    Select "OnSave" option.

    In the grid next to this dropdown, Click "Add" button and write a function name, which you want to use and Click save.

    Click on Edit Library, and paste your function code in the popup.

    Just make sure that the function name you chosen in the previous step must be in your code.

    Click Ok, Save and Publish.

    Please mark my answer as verified, if it solves your query.

    Thanks

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Trigger script onsave of a editable subgrid

    Navigate to you grid properties, click on the events tab. In the event drop down, change the Event to OnSave.

    Add the library and the function that you want to use on the OnSave event.

    If you need to use your CRM execution context, make sure to check that checkbox in the Add library popup.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trigger script onsave of a editable subgrid

    You can refer to given link for registering events on Editable Grids.

    community.dynamics.com/.../events-in-dynamics-365-editable-grid

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,287 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans