Skip to main content

Notifications

Business Central forum
Suggested answer

Filtering Customer in Posted sales invoice report.

editSubscribe (1) ShareShare
ReportReport
Posted on by 95
Hello all,
 
Could someone please help me in writing the code as per my requirement and explain the code....
 
My requirement : I have a Report created on 'posted sales invoices' and now my requirement is to create an action on customer card and when clicked on action
the report should be showing only that particular customers posted sales invoice details
 
Please help me 
 
Thanks,
 
Nitish.
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 60,818 Super User on at
    Filtering Customer in Posted sales invoice report.
    Hi, generally, there are two ways to transfer variables to the report. Hope the following can give you some hints.
     
    Thanks.
    ZHU
  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 10,155 User Group Leader on at
    Filtering Customer in Posted sales invoice report.
    Hi,
     
    In report add a parent data item - Customer which have relation to Posted Sales Invoices with Sell-to-Customer No. or Bill-to-Customer No.
     
    Once Relation is set you can create an action and run it like this - 
     
    Customer.SetRange("No.", CustomerNumber);
    REPORT.RunModal(ReportNumber, true, true, Customer);
     
    Regards,
    Saurav Dhyani

Helpful resources

Quick Links

Take the Community feedback survey!

Answer this brief 15-question survey about your Community experience…

Demystifying Copilot: Service Edition with Sundar Raghavan

Sundar answers more questions about Copilot for Service...

Dynamics 365 Business Central vs Finance and SCM

Take a look at the key differences between Business Central and…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,375 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,308 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans