Skip to main content

Notifications

Community site session details

Community site session details

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

Method GetReceivablesCreditMemoByKey doesn't return Invoice allocations

(0) ShareShare
ReportReport
Posted on by 63

Hello Team,

I created a Credit Memo and paid it by Invoice.

Example:

pastedimage1634547082082v3.png

pastedimage1634547103732v4.png

pastedimage1634547123670v5.png


But method GetReceivablesCreditMemoByKey doesn't return the Invoice that paid the Credit Memo.
How I can receive this allocation?

Categories:
  • Andrew1986 Profile Picture
    63 on at
    RE: Method GetReceivablesCreditMemoByKey doesn't return Invoice allocations

    Derek Albaugh

    Derek, does GP have another method to receive allocations?

  • Andrew1986 Profile Picture
    63 on at
    RE: Method GetReceivablesCreditMemoByKey doesn't return Invoice allocations

    I didn't find another method.

  • Andrew1986 Profile Picture
    63 on at
    RE: Method GetReceivablesCreditMemoByKey doesn't return Invoice allocations

    Derek Albaugh

    I tried to use the method GetReceivablesCreditmemoList. It returns only general information.

    Example:

    <ReceivablesCreditMemoSummary>

                       <Key>

                           <CompanyKey>

                               <Id xmlns="schemas.microsoft.com/.../Id>

                           </CompanyKey>

                           <Id>CREDT000000000002</Id>

                       </Key>

                       <CustomerKey>

                           <CompanyKey>

                               <Id xmlns="schemas.microsoft.com/.../Id>

                           </CompanyKey>

                           <Id>AARONFIT0001</Id>

                       </CustomerKey>

                       <CustomerPONumber/>

                       <CustomerName>Aaron Fitz Electrical</CustomerName>

                       <Date>2027-04-12T00:00:00</Date>

                       <CurrencyKey>

                           <ISOCode>USD</ISOCode>

                       </CurrencyKey>

                       <BatchKey>

                           <CompanyKey>

                               <Id xmlns="schemas.microsoft.com/.../Id>

                           </CompanyKey>

                           <Source>XRM_Sales</Source>

                           <Id>sa</Id>

                           <CreatedDateTime>1900-01-01T00:00:00</CreatedDateTime>

                       </BatchKey>

                       <TradeDiscountAmount>

                           <Currency>USD</Currency>

                           <Value>0.00000</Value>

                           <DecimalDigits>2</DecimalDigits>

                       </TradeDiscountAmount>

                       <FreightAmount>

                           <Currency>USD</Currency>

                           <Value>0.00000</Value>

                           <DecimalDigits>2</DecimalDigits>

                       </FreightAmount>

                       <MiscellaneousAmount>

                           <Currency>USD</Currency>

                           <Value>0.00000</Value>

                           <DecimalDigits>2</DecimalDigits>

                       </MiscellaneousAmount>

                       <TaxAmount>

                           <Currency>USD</Currency>

                           <Value>21.00000</Value>

                           <DecimalDigits>2</DecimalDigits>

                       </TaxAmount>

                       <DocumentAmount>

                           <Currency>USD</Currency>

                           <Value>321.00000</Value>

                           <DecimalDigits>2</DecimalDigits>

                       </DocumentAmount>

                       <ModifiedDate>2021-10-11T09:59:38.29</ModifiedDate>

                       <TransactionState>Open</TransactionState>

                   </ReceivablesCreditMemoSummary>

  • Suggested answer
    Derek Albaugh Profile Picture
    on at
    RE: Method GetReceivablesCreditMemoByKey doesn't return Invoice allocations

    "This method is designed to retrieve a single receivables credit memo object based on the specified receivables document key, the value returned by this method can be affected by entity ID filtering." as per the Web Services Reference help file.

    Looking at it in a tester, running the sample code for the method, it returns a customer id and credit memo amount, by default.

    I'm thinking the GetReceivablesCreditmemoList method may be more what you're looking at for a return?

    Try that method and let us know.... thanks

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,217 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,978 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans