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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Vendor account statement report

(0) ShareShare
ReportReport
Posted on by 12
Hi everyone,
I want to add new fields and customize the system's default vendor account statement report.
So, I first extended the TMP table to my project, duplicated the default SSRS report to make a new design and add my new fields, created extension class of DP to map my new fields. But now I don't know how to make a new Output menu item to show my new report knowing that the default menu item uses the controller class object not a report object.
I have the same question (0)
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    You can refer to this official document: Extend report menu items to redirect user navigation - Finance & Operations | Dynamics 365 | Microsoft LearnThis article shows how to extend existing application menu items so that, after only minimal code changes, navigations are redirected to a custom reporting solution. This article focuses on the process of extending existing application menu items so that, after only minimal code changes, navigations are redirected to a custom reporting solution. By using this technique, you will avoid the inconvenience of tracking down and replacing all references to an existing application report. Just extend an existing application menu item to redirect application navigations to reports that are defined in an extension model. The following illustration shows a typical application customization.
    Or you can also refer to this blog: dynamics365musings.comIn this article I will show you how to create menu items in D365. As well as explain many of the other useful things you can do using the menu item properties.
    Best regards,
    Kevin
  • Community member Profile Picture
    12 on at
    @Kevin, thank you for your reply I managed to extend the report controller and let it use my new report and design, but when I used the processReport method and used a post event handler a strange behaviour happens. 
    while select forUpdate tmp
            {
                ttsbegin;
                select firstonly generalJournalEntry where generalJournalEntry.recid == tmp.GeneralJournalEntry
                    join fiscalCalendarPeriod where fiscalCalendarPeriod.RecId == generalJournalEntry.FiscalCalendarPeriod;
    
                select firstonly vendInvoiceJour where tmp.Voucher == vendInvoiceJour.LedgerVoucher
                    && vendInvoiceJour.InvoiceAccount == tmp.AccountNum
                    && vendInvoiceJour.InvoiceDate == tmp.TransDate;
    
    
                tmp.PeriodName      = fiscalCalendarPeriod.Name;
                tmp.PurchId         = vendInvoiceJour.PurchId;
                tmp.update();
                ttscommit;
            }
    in the code snippet shown, the field Name is assigned to the field PeriodName which I added to the TMP table, while the purchId is shown as blank, even though when trying debugging, the vendInvoiceJour has a recordID, and I made sure that the blank value appearing on my report has a value from querying SQL.
    Any idea?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans