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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Tax Integration Extension - Extended field not considered

(3) ShareShare
ReportReport
Posted on by 6
Good Day, 
 
I have followed the steps documented in the following guide: 
 
I successfully added a custom field to the tax configuration, I only needed to add it to the Data model for the tax lines, nothing else was required I think.
After the above was done, the field is available for selection in the tax group applicability rules section.
Using the debug function: &debug=vs%2CconfirmExit& I can see that the field is filled correctly from the Sales side of F&O.
The issue is that for the applicability rule for Tax Group, the field is not considered during the determination. The field is of type NoYes(enum) - if I set two applicability rules one using "Yes" the other using "No" returning two different Tax Groups - the Tax engine returns nothing and in the debug log it states that no match was found. 

Any ideas on what could be wrong with this?  
Categories:
I have the same question (0)
  • Suggested answer
    Assisted by AI
    SajeedMullaji Profile Picture
    840 on at

    @CR-02121529-0 
    The root cause is a literal string mismatch between how ER serializes your NoYes enum and what you typed in the applicability rules matrix.

    The Tax Calculation engine uses strict literal string matching. ER natively serializes a D365 F&O NoYes enum as a Boolean — true or false — or its integer value 1 or 0. When you configure applicability rules using Yes and No the engine evaluates true == Yes which returns no match and skips the rule entirely.

    The fix — add an IF formula in your ER Model Mapping:

    Go to Workspaces > Electronic reporting

    Open your extended Tax Calculation Model Mapping configuration

    Click Designer to open the Model Mapping designer

    In the Data Model tree locate your custom extended tax line field

    Instead of binding the NoYes field directly — click Edit formula

    Enter this exact formula:

    IF(@.YourCustomNoYesField, "Yes", "No")

    Save the formula

    Change the ER configuration version status to Completed

    This forces ER to serialize the Boolean into the exact literal strings Yes and No in the JSON payload sent to the Tax Calculation service. The applicability rule now finds a perfect match and returns the correct Tax Group.

    Alternative ,if you prefer not to modify the ER mapping, change your applicability rule values from Yes and No to True and False to match the raw Boolean output. But the IF formula approach is cleaner and more readable for end users maintaining the tax configuration.

    If it helped marked as answer.

  • Anton Venter Profile Picture
    21,173 Super User 2026 Season 2 on at

    @SajeedMullaji 

    I marked your reply as AI-assisted as it seems to be the case. If using AI to answer posts, please remember to enable the "Mark reply as AI-assisted" checkbox before posting so that the source is clear to everyone.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 341 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 312

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 262 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans