CRM 2011 Passing QueryString to SSRS Report - reporting-services

I have a report in SSRS that I have in Dynamics CRM 2011 and when the report is run, in the url it passes the id like http://url&id=123-123-123-123. I am trying to make my report in ssrs to grab the id from the query string and use that in the parameters to determine which data to show. Is this possible and if so how would one go about doing it.
Thanks!

CRM actually sends a parameter which can be used to select the filtered view of data that the report was run on. See the report writers guide, and in particular, Using Filters in a Report.
In the simplest case, you would write your main data set to select like so: SELECT <column1>, <column2>, <columnN> FROM FilteredAccount AS CRMAF_FilteredAccount
If that doesn't answer answer your question... You could write an aspx page which embeds the report viewer control. From there you would read the query string, load the report, and then set some parameters based on the query string values. You'd have to have custom ribbon options to launch your custom page.

I had the same problem.
Here is the resolution which worked for me:

Related

Running SSRS Report by passing parameters in the URL doesn't show any result of the report

I'm trying to run an SSRS report on the server which takes a parameter as input. When I enter input in the textbox it displays the result. Also works fine in the visual studio BIDS.
But, I want to pass parameter in the URL and see the report result which is not working.
I have seen solutions to other similar SO posts SSRS passing Report Parameters
which mentioned checking the dataset parameters properties.
My parameter name is #TestId and value is set to =Parameters!TestId.Value
So, it is correct as suggested in the solution.
Now I try o access my report using URL patterns as below
Just giving parameter and value
http://testssrs14/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fTest%2fTestReport%2fTest+Report&TestId=1234
using command = render
http://testssrs/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fTest%2fTestReport%2fTest+Report&rs:Command=Render&TestId=1234
when I hit enter it doesn't throw any error in both cases but just shows a blank page instead of the result of the report. Is there anything I'm missing?
Please use this URL instead and try
http://testssrs14/ReportServer/
And navigate to the report that you're looking for.
When you get to the report page, then pass the parameter value.
&<Parameter Name> = <value>
In your case
&TestId=1234
Add this at the end of the URL.
Let me know if you need any further clarification.
Based on your comments, Here's some detail.. though I guess it must be figured out as of now..
Here goes the report server:
and below goes the Report Manager..
and in VS Data Tools or BIDS, the same is set as in Projects->Properties below
So, you got to try your URL parameters in ReportServer, not in Report Manager.
What you had been accessing so far is Report Manager..
Hope it makes some sense, now : ) ,
Thus, your link should be something like http://testssrs14/Reportserver/..
This link is also a good source!

Pass data to report from page

Is there a way that we can Pass data to report from web page
To be more specific I have a report to which I want to bind dataset from Code behind,
I am using ssrs 2008 r2
with C# 4.0 ASP.NET
Basically these reports will be viewed on browser, but what I want is to have something like we can pass the data from the page to the report
So far I found that there is no direct solution but is there any workaround ?
You can do it using XML and pass the data from the page to the report server
The XML datasource will generate dataset in the report and you can use it in your report
For detailed answer please take a look here

Custom Code and Parameters in SSRS

I am trying to use the custom code option to pull down the querystring and set the parameters for the report all in the custom code. So I may have a url such as:
http://mywebsite.com/index.aspx?ProjectID=1
I would want the code in the SSRS custom code to pull down that 1 and put it in the parameters for the report. So when I run the report it shows the data with the ProjectID of 1.
Is this possible to do in Reporting services? If so, how would one go about doing this. Thanks for any help I have seriously been trying to figure this our for weeks.
Thanks!
SSRS can parse a parameter value from the URL as long as it's in the format parameter=value. See this msdn article
The sample URL in your question doesn't look like a report server URL, so (like bhupendra indicates) it's hard to know exactly what you're doing.

I want to display a report on a web page The report needs a single parameter (prompt, possibly)

I want to display a Microstrategy report on a web page The report needs a single parameter
I have a report that has a (local) filter which I'd like to able to parameterize. Not the whole filter string but just the numeric value that the report filters on.
I know that I can use a prompt to put a value into a report, but I need to do this from an HTML document which, I understand, can't be done with a prompt.
Is there another way to do pass a parameter from an HTML document into the filter of report in the HTML document?
Kind Regards,
Barrie
If you're using a URL to the report, you can pass a prompt answer in as a parameter, specifically valuePromptAnswers.
TN15734 on the MicroStrategy Knowledgebase gives a full example, if that isn't clear enough.

Access report pass parameter to subreports query

I have an access report which contains information about a given job. I'm trying to add a subreport that will display some detail information about that job, but I need to pass the job's number into the query the 2nd report uses. How is this done in access vba?
Is there some command which will let me run the query with the passed parameter before I display the subreport?
The simplest way to connect a subreport to a main report is using the LinkMasterFields/LinkChildFields properties of the subreport control.