Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Parameter as a Lookup in SSRS

Posted on by Microsoft Employee

Hi guys, 

Another day, another report. We host events and I'm looking to create a guest-list report to list pertinent information about attendees to the event. I was hoping to either:

  • Have a Parameter that worked as a lookup, as it does when filtering within CRM -  search for the event.  I've got a Parameter @eventlookup
    • select * from eventtable, where (event_name = @eventlookup)
    • This appears to be text or integer, I'm not sure if these is even possible?
  • On the event form, there is a button for Run Report, could I set the report to run only against the event that this is initiated from?

I'm using SSRS in visual studio 2012, connecting to an on-prem 2015 dynamics.

As always, your help is greatly appreciated!

*This post is locked for comments

  • Verified answer
    Preeti Sharma Profile Picture
    Preeti Sharma 2,678 on at
    RE: Parameter as a Lookup in SSRS

    Hi,

    Have a Parameter that worked as a lookup, as it does when filtering within CRM -  search for the event.  I've got a Parameter @eventlookup

    • select * from eventtable, where (event_name = @eventlookup)

             This appears to be text or integer, I'm not sure if these is even possible?

    You can set available values of parameter as name of record if you want to compare names of events.

    • On the event form, there is a button for Run Report, could I set the report to run only against the event that this is initiated from?

    You can enable prefiltering to run report on selected record only.

    Below link can help you:

    community.dynamics.com/.../know-how-d365-ssrs-report-prefiltering-fetchxml-sql

    Hope this helps:)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans