Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Trigger script onsave of a editable subgrid

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans