Asset Management Report

Asset Management Report

Hello,

I have been tasked to build a report on servicedesk plus that needs to provide information regarding the current mobile phone devices we have assigned to users.


I am able to get the following columns easily through the GUI:

Product Name | Phone Number | Asset State | User | 

However It has been requested that on this report we need to enter the Executive Officer that the user ultimately reports to, this information is sort of available on AD in the sense of we ca see who the user reports to and then who they report to etc. AD is linked with service desk.

So the headers would look like this:


Product Name | Phone Number | Asset State | User | Reports to EO
Iphone | 07712345678 | In Use | Joe Bloggs | Joe Bloggs EO 


I hope this makes sense and you are able to help.

the current code I have is:

  1. SELECT
  2. "cicd"."COMPONENTNAME" AS "Product Name",
  3. "resFields"."UDF_LONG1" AS "Phone Number",
  4. "cirest"."DISPLAYSTATE" AS "Asset State",
  5. "resUser"."FIRST_NAME" AS "User"  
  6. FROM
  7. "SmartPhone" 
  8. LEFT JOIN
  9. "Resources" "cires" 
  10. ON "SmartPhone"."CIID"="cires"."CIID" 
  11. LEFT JOIN
  12. "ComponentDefinition" "cicd" 
  13. ON "cires"."COMPONENTID"="cicd"."COMPONENTID" 
  14. LEFT JOIN
  15. "ResourceState" "cirest" 
  16. ON "cires"."RESOURCESTATEID"="cirest"."RESOURCESTATEID" 
  17. LEFT JOIN
  18. "ResourceOwner" "resOwn" 
  19. ON "cires"."RESOURCEID"="resOwn"."RESOURCEID" 
  20. LEFT JOIN
  21. "AaaUser" "resUser" 
  22. ON "resOwn"."USERID"="resUser"."USER_ID" 
  23. LEFT JOIN
  24. "Resource_Fields" "resFields" 
  25. ON "cires"."RESOURCEID"="resFields"."RESOURCEID" 
  26. WHERE
  27. (
  28. "cirest"."DISPLAYSTATE" COLLATE Latin1_General_CI_AS = N'In Use'
  29. )  
  30. AND cires.CIID IS NOT NULL




                  New to ADSelfService Plus?