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, ...
Suggested Answer

Electronic reporting - record list filter

(3) ShareShare
ReportReport
Posted on by 60


 
Hi everyone,
I’m working on electronic reporting for invoices in XML, and I have a problem with filtering in a CodeTax record list.
The CodeTax list contains fields TaxCd and TaxV, which point to TaxCode and the showTaxValue() method. This list is inside the invoice line (LigneClient).
Here is my CodeTax reference:
@.'>Relations'.TaxItemGroup.'<Relations'.TaxOnItem

For TaxCd, I’m using:
if(@.TaxCode = "TVA19", "TVA19",
   if(@.TaxCode = "TVA19-TPE", "TVA19",
      if(@.TaxCode = "ECOFILTER", "ECOFILTER",
         if(@.TaxCode = "TPE", "TPE", ""))))

And for TaxV:
IF(@.TaxCode = "TVA19", 19.0,
   IF(@.TaxCode = "TPE", @.'showTaxValue()',
      IF(@.TaxCode = "ECOFILTRE", @.'showTaxValue()',
         IF(@.TaxCode = "TVA19-TPE", 19.0, 0.0))))

The issue is that when I try to filter specific taxes, the other taxes remain in the list, but their TaxCd is empty and TaxV is 0. I want these other taxes to not exist at all in the filtered list instead of showing empty or 0 values.
How can I achieve this?
Thanks in advance!
 














Categories:
I have the same question (0)
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,679 Super User 2025 Season 2 on at
    Hi,

    You can evaluate to use Case function. For TaxCd you can map just to TaxCode.
    For TaxV, can you ealborate about the TaxCd is empty, do you mean that TaxCd is empty or TaxItemGroup or TaxOnItem table i empty?  (@.'>Relations'.TaxItemGroup.'<Relations'.TaxOnItem)
     
     

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
Martin Dráb Profile Picture

Martin Dráb 672 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans