Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Can Smartlist pass parameters to SQL Server?

(0) ShareShare
ReportReport
Posted on by 125

I built a custom smartlist that gets data from an SQL view.  However, I'd like to customize the data returned to the smartlist based on date(s).  Can I somehow use the search criteria from Smartlist to pass to an SQL stored procedure/query to pull data from the view dynamically.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can Smartlist pass parameters to SQL Server?

    You would have to go through your VAR.

  • Ian Richardson Profile Picture
    Ian Richardson 4,150 on at
    RE: Can Smartlist pass parameters to SQL Server?

    is extender free?  if so can I download from msft or do I have to get it from my VAR?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can Smartlist pass parameters to SQL Server?

    If you have Extender, you can create an Extender window with the dates that you need...attach it to the Smartlist Window...create the smartlist view of the dates and use that view in you sql query as needed...when you want to change dates...change them in the smartlist extender window..i have many date windows like this and they work great .

  • Richard Whaley Profile Picture
    Richard Whaley 25,195 on at
    RE: Can Smartlist pass parameters to SQL Server?

    If you are new, then you might find some of our books helpful. We even have on (Customizing with the Builders) that covers the SmartList Builder.  Check out our web site.

  • dsawyer Profile Picture
    dsawyer 125 on at
    RE: Can Smartlist pass parameters to SQL Server?

    I thought this may be the case.  Just wanted to make sure I wasn't missing something.  I'm fairly new to GP and even newer to Smartlists.  Thanks for your quick response.

  • Verified answer
    Richard Whaley Profile Picture
    Richard Whaley 25,195 on at
    RE: Can Smartlist pass parameters to SQL Server?

    No.  This is a listing tool and not really set up to pass parameters.  The parameters in the Smartlist can be used to filter the results presented by the view and show only those lines.  The view will not be managed but the entire list of records returned by the view can be then limited to show only the ones specified in the Search criteria.  

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