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 :
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?
 
I have the same question (0)
  • 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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans