Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

business central api income statement not showing data

Posted on by
Hi,
 
Im trying to use the business central api to get income statement data. Im using this endpoint: 
 
https://{businesscentralPrefix}/api/v2.0/companies({id})/incomeStatements?$orderby=lineNumber&$filter=dateFilter ge 2019-01-01 and dateFilter le 2020-12-31
 
im getting data back with the correct rows from the configured income statement report but all my numbers are empty. is there a setup step im missing. is this the expected response. if so what is the call to actually get the data.
 
{
            /@odata.etag/: /W////JzE5OzE1MTc3Mzg3NzYzMjAzMTQzNTExOzAwOyc=////,
            /id/: /b0809aa4-d7b3-ee11-a56a-002248238fc1/,
            /lineNumber/: 310000,
            /display/: /OPERATING EXPENSE/,
            /netChange/: 0,
            /lineType/: /header/,
            /indentation/: 0,
            /dateFilter/: /2023-12-01/
        },
        {
            /@odata.etag/: /W////JzIwOzE2MTI1ODI1OTU1MjU4NzIxODEzMTswMDsn////,
            /id/: /b1809aa4-d7b3-ee11-a56a-002248238fc1/,
            /lineNumber/: 320000,
            /display/: /ADVERTISING & MARKETING/,
            /netChange/: 0,
            /lineType/: /detail/,
            /indentation/: 1,
            /dateFilter/: /2023-12-01/
        },
        {
            /@odata.etag/: /W////JzE5OzYyMDU1ODQ3NTQ4ODM2OTAwNTcxOzAwOyc=////,
            /id/: /b2809aa4-d7b3-ee11-a56a-002248238fc1/,
            /lineNumber/: 330000,
            /display/: /BANK CHARGES/,
            /netChange/: 0,
            /lineType/: /detail/,
            /indentation/: 1,
            /dateFilter/: /2023-12-01/
        },
        {
            /@odata.etag/: /W////JzIwOzE1MjA4Nzc0Nzg2MjI2Njc3ODEzMTswMDsn////,
            /id/: /b3809aa4-d7b3-ee11-a56a-002248238fc1/,
            /lineNumber/: 340000,
            /display/: /INTEREST EXPENSE/,
            /netChange/: 0,
            /lineType/: /detail/,
            /indentation/: 1,
            /dateFilter/: /2023-12-01/
        },
        {
            /@odata.etag/: /W////JzIwOzEwMjU3MzExOTI2MDg3Nzc1NjgyMTswMDsn////,
            /id/: /eef9d545-b6b8-ee11-a568-6045bdef6e36/,
            /lineNumber/: 350000,
            /display/: /SALARIES/,
            /netChange/: 0,
            /lineType/: /detail/,
            /indentation/: 1,
            /dateFilter/: /2023-12-01/
        },
 
im expecting this
 
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 12,183 Most Valuable Professional on at
    business central api income statement not showing data
    Hi
    You can check if the column definition of your financial report is called M-NETCHANG
     
    Best Regards
    Gerardo

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans