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

How to call form data source method in rdp class of ssrs report d365?

(0) ShareShare
ReportReport
Posted on by 210

Hi, 
I want to call form data source method in my DP class SSRS report d365.

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,284 on at
    RE: How to call form data source method in rdp class of ssrs report d365?

    Dont forget that your report could be executed in batch mode and you dont have that form available there. So instead of calling a method from DP, call it from controller, get data and pass it to DP through the contract.

  • Verified answer
    Rati Sharabidze Profile Picture
    612 on at
    RE: How to call form data source method in rdp class of ssrs report d365?

    Hi,

    You cam create a new method and "copy+paste" from data source method, as you are running your report from a form, the report controller class menuitem should have your datasource in properties and you should have the current record buffer somewhere. "Somewhere" the debugger will help you finding it.

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at
    RE: How to call form data source method in rdp class of ssrs report d365?

    Hi Vikash,

    Could you, please, provide more information about your requirements?

    You can call form the data source method only if you have form instantiated. But it's not possible to call form the data source method for SSRS report data providers.

    If you want to re-use some code, you need to refactor it, move it to table\class level, and re-use in form and data provider. If it's MS code, you would need to ask MS to do this with an extensibility request. Or just copy-paste the code from the form.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 777 User Group Leader

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 602 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans