Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Extension of a query d...
Finance forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Extension of a query does not reflect in DP class

Posted on by
Hi everyone,
 
I'm extending query called TaxTrans, to added one more field ->
 
This query is being used in a DP class "TaxTransDP", some screenshot is like this :
 
 
in processReport method:
 
 
May I know is there something need to do right after adding that 1 field in the query, Build+Synchronize ? 
Since when I debug this, I can see the query is not with the additional field (TaxBaseAmount) ->
 
{Query TaxTrans object 470176b0: SELECT Source, SourceCurrencyCode, TaxCode, TransDate, Voucher, SUM(TaxAmount), SUM(SourceRegulateAmountCur), SUM(TaxInCostPriceMST) FROM TaxTrans(TaxTrans) GROUP BY TaxTrans.Source, TaxTrans.SourceCurrencyCode, TaxTrans.TaxCode, TaxTrans.TransDate, TaxTrans_W.VatDueDate_W, TaxTrans.Voucher ORDER BY TaxTrans.Voucher ASC, TaxTrans.TransDate ASC, TaxTrans_W.VatDueDate_W ASC, TaxTrans.SourceCurrencyCode ASC, TaxTrans.TaxCode ASC WHERE ((TransDate = {ts '2023-07-31 00:00:00.000'})) OUTER JOIN VatDueDate_W FROM TaxTrans_W(TaxTrans_W_1) ON TaxTrans.RecId = TaxTrans_W.TaxTrans}
 
This is why when I display this in my DP class extension, this field TaxTrans.TaxBaseAmount always zero.
 
May I know how to get this amount ?
 
Thanks
 

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans