Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / How to retrieve CRMpar...
Sales forum
Suggested answer

How to retrieve CRMparameter sent from a ribbon button

Posted on by 5

I am trying to retrieve the context information from a subgrid on the new form that is opened (Quick Create in  this case)  from the "New" button.  (see below)

pastedimage1675967533364v1.png 

Categories:
  • Suggested answer
    Eiken Profile Picture
    Eiken on at
    RE: How to retrieve CRMparameter sent from a ribbon button

    Hi,

    This link may help you.

    tldr-dynamics | Pass formContext to custom ribbon button in Dataverse

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator on at
    RE: How to retrieve CRMparameter sent from a ribbon button

    Hi Chaffee007,

    Use 

    formContext.getControl("subgridName").getViewSelector().getCurrentView();

    For more details: https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/grids/viewselector/getcurrentview

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 5,816 Moderator on at
    RE: How to retrieve CRMparameter sent from a ribbon button

    Try to get primary context and from that view id. 

    https://prajapatiamit.medium.com/quick-tip-get-subgrid-view-id-using-primary-control-or-selected-control-for-ribbon-buttons-87a74464a6f9

    Thank you, 

    Amit Katariya

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,353 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,251 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans