Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
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 

  • 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 Super User 2024 Season 1 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 8,525 Super User 2024 Season 1 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

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans