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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

how to get main form context when using button of subgrid which is present in quickview

(0) ShareShare
ReportReport
Posted on by 35

i have added a quick view which contain a related subgrid in main form. in subgrid there is one button when clicking on the button it is taking formContext of qvick view form not of main form.

for example. in contact table I have created a quickies which contains all the cases related to contact. i have added that quick view in account form.

i have made a custom button on subgrid onclick of that button it should take formContext of account form but it is taking form context of quick view form

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

    Hi vishal malav intime,

    Did you create that custom button by Ribbon Workbench and you pass primary control as parameter?  And why do you need to get main formContext, what do you want to do by that?

  • vishal malav intime Profile Picture
    35 on at

    i want to create new record from sub grid in model form format and in that from i want to pass parameter from main form. and yes i am using create button with custom JS

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi vishal malav intime,

    If so, there is no way to get the main form context. You could try to use Web API to get the field's value on the table.

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    You can use CRM.webapi.retrieverecord to fetch field value from parent Entity.

    docs.microsoft.com/.../retrieverecord

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!

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
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 55

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans