
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2016 10:15 PM
Hi,
I am needing some assistance creating a report to show all workstations assets with any associated relations.
Many Thanks!
I am needing some assistance creating a report to show all workstations assets with any associated relations.
Many Thanks!

Labels:
- Labels:
-
Report Center
8 REPLIES 8

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2018 12:07 AM
Grammatic pedantry, but
"tsysAssetRelationTypes.Name As RelationType"
should be
"tsysAssetRelationTypes.ReverseName As RelationType"
Name -> ReverseName
in the User Relationship query
"tsysAssetRelationTypes.Name As RelationType"
should be
"tsysAssetRelationTypes.ReverseName As RelationType"
Name -> ReverseName
in the User Relationship query

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2016 08:26 PM
Perfect! Many Thanks!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2016 05:44 PM
I am assuming you are using the original asset relationship query without issue, correct? I updated that query with the username, office, and department of the last user of the parent asset.
Select Top 1000000 a1.AssetID,
a1.AssetName,
a1.Username,
tblADUsers.Office,
tblADUsers.Department,
tsysAssetRelationTypes.Name As RelationType,
a2.AssetName As ChildAssetName,
tblAssetRelations.StartDate,
tblAssetRelations.Lastchanged
From tblAssetRelations
Inner Join tblAssets a1 On a1.AssetID = tblAssetRelations.ParentAssetID
Inner Join tblAssets a2 On a2.AssetID = tblAssetRelations.ChildAssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetRelations.Type
Left Join tblADUsers On tblADUsers.Userdomain = a1.Userdomain AND tblADUsers.Username = a1.Username
Order By a1.AssetName,
ChildAssetName

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 09:12 PM
My bad, I did try that when you last posted but forgot to post back that it did not function.
Getting "This report has no results!"
Getting "This report has no results!"


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 05:35 PM
User came back to me and asked if she could also get the below listed added to this report? I have tried and failed..
Username (example: nryan)
Office (example: GA073)
Department (example: 218769 ICT Field Services)
Username (example: nryan)
Office (example: GA073)
Department (example: 218769 ICT Field Services)

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 08:44 PM
Chris@BCD wrote:
User came back to me and asked if she could also get the below listed added to this report? I have tried and failed..
Username (example: nryan)
Office (example: GA073)
Department (example: 218769 ICT Field Services)
I assume you mean for the user relationship report? If so, try this query:
Select Top 1000000 tblAssetUserRelations.Username,
tblAssetUserRelations.Userdomain,
tblADusers.Displayname,
tblADUsers.Office,
tblADUsers.Department,
tsysAssetRelationTypes.Name As RelationType,
tblAssetUserRelations.AssetID,
tblAssets.AssetName,
tblAssetUserRelations.StartDate,
tblAssetUserRelations.Lastchanged
From tblAssetUserRelations
Inner Join tblADusers
On tblADusers.Userdomain = tblAssetUserRelations.Userdomain And
tblADusers.Username = tblAssetUserRelations.Username
Inner Join tblAssets On tblAssets.AssetID = tblAssetUserRelations.AssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetUserRelations.Type
Order By tblAssetUserRelations.Userdomain,
tblAssetUserRelations.Username

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2016 07:34 PM
Worked like a charm!!
Many Thanks!!
Many Thanks!!


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2016 07:18 PM
These should get you started.
Asset Relationships:
User Relationships:
Asset Relationships:
Select Top 1000000 a1.AssetID,
a1.AssetName,
tsysAssetRelationTypes.Name As RelationType,
a2.AssetName As ChildAssetName,
tblAssetRelations.StartDate,
tblAssetRelations.Lastchanged
From tblAssetRelations
Inner Join tblAssets a1 On a1.AssetID = tblAssetRelations.ParentAssetID
Inner Join tblAssets a2 On a2.AssetID = tblAssetRelations.ChildAssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetRelations.Type
Order By a1.AssetName,
ChildAssetName
User Relationships:
Select Top 1000000 tblAssetUserRelations.Username,
tblAssetUserRelations.Userdomain,
tblADusers.Displayname,
tsysAssetRelationTypes.Name As RelationType,
tblAssetUserRelations.AssetID,
tblAssets.AssetName,
tblAssetUserRelations.StartDate,
tblAssetUserRelations.Lastchanged
From tblAssetUserRelations
Inner Join tblADusers
On tblADusers.Userdomain = tblAssetUserRelations.Userdomain And
tblADusers.Username = tblAssetUserRelations.Username
Inner Join tblAssets On tblAssets.AssetID = tblAssetUserRelations.AssetID
Inner Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetUserRelations.Type
Order By tblAssetUserRelations.Userdomain,
tblAssetUserRelations.Username
