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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Custom filter query overwrite issue if saved view feature is enabled on form

(1) ShareShare
ReportReport
Posted on by 239
One of the user has enabled saved view feature on Production order page with some custom filter. There is another functionality which calls same Production order page through x++ code and passing some arguments. 
 
When we open the form through below code it doesn't filter the records passed by code but displays the results from saved view filter.
 
1. Code to pass the argument while calling the form menu item through code.
 
 
2. Written the code for form init event handler to filter the data from args.
 
 
What could be changed to overwrite the filter passed by custom code?
 
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    May be the logged in user is same in both cases and he might have pinned the filter with custom filter. In that case only saved filter will show. I think removing this filter can help in this case.
  • kartik0603 Profile Picture
    239 on at
    We cannot remove the filter. If forms is opened from main menu item it should filter record based on saved view. But if form is opened through code it should filter values passed in parameter...

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 523 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 408 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 354

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans