web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Electronic reporting - record list filter

(4) ShareShare
ReportReport
Posted on by 66


 
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,839 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans