Notifications
Announcements
No record found.
Hi,
If let's say i have a code that says
QueryBuildDataSource = query.AddDatasource(...)
And i want to remove this datasource from the query based on a condition..how can i do it by code?
I can't find a method related to clearing datasource from a query
You can use the enabled propery to disable it.
Hi, Please check this old thread
community.dynamics.com/.../498807
You can also refer to the below thread.
community.dynamics.com/.../remove-added-data-source-to-qbds
Thanks,
Girish S.
Supplementary Note:
In addition, related articles are found for you, you can refer to them. Hope these will be useful as well!
How can I delete a dataSource previously added? — mibuso.com
axapta - Dynamics AX: Disable datasource from form in code while being able to use advanced filter/sort option - Stack Overflow
Best Regards,
Hana
This post is my own opinion and does not necessarily reflect the opinion or view of my company.
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional