Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Entity to fetch credit...
Finance forum
Suggested answer

Entity to fetch creditnote data in F&O?

Posted on by 72
 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.
  • Layan Jwei Profile Picture
    Layan Jwei 6,870 Super User 2024 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
    André Arnaud de Cal... 290,142 Super User 2024 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.

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,142 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,979 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans