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

Community site session details

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

Entity to fetch creditnote data in F&O?

(0) ShareShare
ReportReport
Posted on by 76
 Hello,
 
I am new in F&O and wanted to confirm that SalesInvoiceHeadersV2 and SalesInvoiceLines are the same entity that we have to use to export credit notes via ODATA. or is there any other entity that belongs separately for credit notes?
 
another ques- If I go with SalesInvoiceHeadersV2 then how can I identify which one is an invoice and which one is a credit note because there is no by-default field that I can consider as a document type or no field for status as well like Draft/Booked/Paid invoice.
I have the same question (0)
  • Layan Jwei Profile Picture
    7,995 Super User 2025 Season 2 on at
    Entity to fetch creditnote data in F&O?
    Hi Community member,

    I agree with Andre, you should rely on the negative amount to indicate if it's a credit note or not.
    You could look at this documentation to see how to use odata filters, if you want to filter on amount
    https://learn.microsoft.com/en-us/odata/concepts/queryoptions-overview#filter

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future. You can do this by ticking the box "Does this answer your question"
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    297,200 Super User 2025 Season 2 on at
    Entity to fetch creditnote data in F&O?
    Hi,
     
    You are correct that there is one single data entity for invoices that also contains the credit notes. There is no specific field, directly telling you if it is an invoice or credit note. You can only rely on the invoice amount. Positive is an invoice, and negative amounts are the credit notes. 

    The data entity and invoice tables don't have a status. They are only the posted invoice documents. The payment status is maintained via customer transaction settlements.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 665 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 595 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 558

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans