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

How to change the Select target of SQL execution in Form

(0) ShareShare
ReportReport
Posted on by 28
Hi Experts

The SQL by Form is taking a long time due to the execution of fields that are not needed.
(All items in the included data sources are being selected.)
To speed up the process, I would like to execute SQL only for the necessary fields.
 
My code is like this.
I am having trouble running the process even with the following code.
 
[ExtensionOf(formStr(SalesLineBackOrder))]
final class SalesLineBackOrder_Extension
{
    /// <summary>
    ///
    /// </summary>
    /// <param name=/args/></param>
    [DataSource]
        class salesline
        {
            public void executeQuery()
            {
                QueryBuildDataSource qbds;
                QueryBuildFieldList qbfl;
                qbds = this.query().dataSourceTable(tablenum(salesline));
                qbfl = qbds.fields();
                qbfl.dynamic(false);
                qbfl.clearFieldList();
                super();
            }
        }
}

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,399 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans