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 :
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

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans