Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsRole Users ReportRole Users Report
Previous
 
Next
New Post
6/6/2007 11:09 AM
 

I've created a useful report that displays all the users in a particular role that displays First Name, Last Name and Email address. If anyone can tell me how I'd also extract the users phone number I'd be greatful!

SELECT    
  U.FirstName,
  U.LastName,
  U.Email
 FROM UserPortals AS UP
   RIGHT OUTER JOIN UserRoles  UR
   INNER JOIN Roles R ON UR.RoleID = R.RoleID
   RIGHT OUTER JOIN Users AS U ON UR.UserID = U.UserID
  ON UP.UserId = U.UserID 
 WHERE ( UP.PortalId = 1)
  AND (R.RoleName = 'Registered Users')
  
 ORDER BY U.FirstName + ' ' + U.LastName

 
New Post
6/22/2007 12:40 PM
 

I have a need for this report. But I cannot get it to work. I am new to this, but it should be simple.

Using the Reports module,  under Report settings.I copy & paste the code into the Query text window.


I click on test query and get  "test successful, 0 records returned"


What am I doing wrong?

 

 
New Post
6/22/2007 1:57 PM
 

There is a function (depending on your version) called

GetProfileElement

I would look at that.

 
New Post
6/22/2007 2:32 PM
 

Make sure you replace portalid=1 with the portalid of the portal you wish to extract the users from.

thanks for the info re: GetProfileElement, I will try that out.

 
New Post
6/22/2007 2:46 PM
 

OK, It appears that I am missing something fairly basic. I am on DNN 04.05.01.


Does anyone have information on where to find and how to use the GetProfileElementfunction?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsRole Users ReportRole Users Report


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out