web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Filter Dropdown of Opps based on parentaccountid in Custom Page Dialog

(2) ShareShare
ReportReport
Posted on by 6
I am trying to Filter a dropdown within my Custom Page. In the end something like this has to be achieved:
 
-> User clicks on Ribbon Bar button in Dynamics on a contact
-> Account ID is retrieved via JS and given to Custom Page via "navigateTo" (varRecordId in Power FX)
-> Custom Page Opens in a Dialog
-> Only Opportunities of the given account can be selected by User
-> Some Business Logic on Button Click
 
Does someone have an Idea how to Filter the Dropdown correctly in Power FX? I tried almost everything but I am not able to make it work: 
 
 
 
 
 
I have the same question (0)
  • Suggested answer
    CU01071522-0 Profile Picture
    6 on at
    Isses was not related to the filter criteria...the attributes for display within in the dropdown had to be adjusted. As soon as the topic was selected there, the desired opportunities are shown. 
  • Suggested answer
    Muhammad Shahzad Shafique Profile Picture
    2,373 Most Valuable Professional on at
    1. Pass Account ID via navigateTo:
     
    Xrm.Navigation.navigateTo({
      pageType: "custom",
      name: "your_custom_page_name",
      parameters: {
        varRecordId: accountId // retrieved from the contact form
      }
    }, {
      target: 2, // Dialog
      width: { value: 50, unit: "%" },
      height: { value: 70, unit: "%" },
      position: 1
    });
    
    2. In the OnStart property of the Custom Page:
    Set(accountId, Param("varRecordId"))
    
    3. Assuming the dropdown is bound to the Opportunities table:

    Filter(Opportunities, Account.Id = accountId)

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

News and Announcements

Season of Giving Solutions is Here!

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

#1
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 79 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 48

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans