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 237
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?
 
  • kartik0603 Profile Picture
    237 on at
    Custom filter query overwrite issue if saved view feature is enabled on form
    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...
  • Bharani Preetham Peraka Profile Picture
    3,624 Moderator on at
    Custom filter query overwrite issue if saved view feature is enabled on form
    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,925 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans