How to use a SQL view in SmartList Builder
Something I have been asked more than a few times is how to use a SQL view in SmartList Builder to create a new SmartList. I am going to walk through this step by step using Dynamics GP 10.0 SP 3 and SQL Server 2005 SP 3:
STEP 1 - create SQL view
To start we need a SQL view. I have published a number of views for getting GP data, so I will use one of my favorites - Payables Apply Information. You can see the list of other SQL views I have published on my GP Reports page.
To create the view in SQL:
-
Open SQL Server Management Studio and connect to your GP SQL Server
-
Click on the New Query button at the top left
-
Copy the SQL code into the new window that opens (on my blog, I put the code to copy between squiggles: ~~~~~)
-
Click Execute
-
You will get a message saying “Command(s) completed successfully.”
-
If you want to use your SmartList in multiple companies, repeat steps 4 and 5 for each company database
STEP 2 - set up SmartList security for SQL view
Before we can use a SQL view in SmartList Builder we need to grant SmartList Builder security to that view:
-
Log into GP as a user that has all the proper security access
-
Open the SQL Table Security window by going to Microsoft Dynamics GP > Tools > SmartList Builder > Security > SQL Table Security
-
Choose Views at the top
-
Click on your company database on the left
-
If you created the SQL view in multiple company databases, repeat steps 4 and 5 for each company database
STEP 3 - create SmartList
Now we are ready to create the SmartList:
-
Open SmartList Builder by going to Microsoft Dynamics GP > Tools > SmartList Builder > SmartList Builder
-
Type in a SmartList ID and Name (the Item Name will default to the SmartList Name, I recommend leaving these the same to avoid confusion)
-
Choose what Product and Series to put your SmartList in - this is a great new option in GP 10.0 and allows you to group SmartLists as you want. This is also something that can be changed later, so some people like to create all new SmartLists is a separate place until they are satisfied with them, then move them to their ultimate location. Up to you on this one.
-
Check the Use Company Database checkbox if you are creating a SmartList that should run against whatever company database the user is logged into (or if you are planning that for the future)
-
Click on the company database on the left
-
Select Views and click on your view on the right
-
Click Save to return to the SmartList Builder window
-
Once you’re done configuring all the additional options for your SmartList, click Save
Next steps & additional resources
Below are some additional resources for creating SmartLists and dealing with SmartList security in GP:
-
This blog - Granting access to a new SmartList in GP 10.0
-
Mariano Gomez - Changing SQL Server views for SmartList Builder smartlists
-
Mariano Gomez - Smartlist Builder Security for SQL Server Views
-
David Musgrave - Creating SQL Views of Extender Data
-
This blog - Reporting on Extender data in Dynamics GP
If you know of any other resources to add to this list, please let me know.
Posted in Dynamics GP, GP SQL scripts, SmartList Builder Tagged: Dynamics GP, GP Reports, GP SQL view, Payables, SmartList Builder, SQL code

This was originally posted here.

Like
Report





*This post is locked for comments