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, ...
Unanswered

How to get selected record id in query in print layout report in SSRS

(0) ShareShare
ReportReport
Posted on by 230
Hi Team,
 
I am developing new print layout SSRS report.
 
Here if i select Particular record and click on report menu item, same selected record id should we set in dialog box.
 
 
Please let me know how to achieve this.
I have the same question (0)
  • Martin Dráb Profile Picture
    236,962 Most Valuable Professional on at
    How to get selected record id in query in print layout report in SSRS in D365FO
    Is it a query-based report or a reporting using an RDP class?
  • CU21091228-0 Profile Picture
    230 on at
    How to get selected record id in query in print layout report in SSRS in D365FO
    Using RDP class.
  • Martin Dráb Profile Picture
    236,962 Most Valuable Professional on at
    How to get selected record id in query in print layout report in SSRS in D365FO
    It's not clear which part you're struggling with, so here is a brief overview.
    1. Use a menu item button to call your report controller.
    2. In controller's main(), you should see the active record in _args.caller(). But don't do anything with it there, simply pass it to the controller through parmArgs().
    3. In prePromptModifyContract(), modify the query. The safest way is removing all existing filters for the given field and then adding one for the value from args.record().
  • Hana Xue Profile Picture
    Microsoft Employee on at
    How to get selected record id in query in print layout report in SSRS

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 585 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 565

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans