Skip to main content

Get-VsaTimeSaved.ps1

Summary​

This document generates a CSV report for the end client to show cumulative and monthly time saved values for each organization in their environment, as well as the total for all organizations.

Example Output​

Org NameTotalMonthly
Entire VSA3:35:002:35:00
PC Computing and Consulting0:10:000:10:00
ProVal Technologies2:15:001:15:00
Meriplex0:10:000:10:00
Bercell Integrated Technologies Ltd0:10:000:10:00
Groff Networks0:05:000:05:00
SysIntegrators, LLC0:05:000:05:00
MBTech0:10:000:10:00
CIO Solutions0:00:000:00:00
Binatech0:10:000:10:00
itSynergy0:10:000:10:00
Unnamed0:00:000:00:00
Avatar Computer0:05:000:05:00
Trinity Worldwide Technologies0:05:000:05:00
Test0:00:000:00:00
DataBlue0:00:000:00:00

Dependencies​

VSA - VSA Configuration - Solution - Automation Time Saved Tracking

Process​

  • Gets the Agent list from the API.
  • Gets the Organization list from the API.
  • Adds the sums of the custom fields (CFs) on all agents and places them into the object (for total across VSA).
  • Loops through each organization and adds together the CFs only for agents in the current organization (for organization totals).
  • Outputs data to CSV.

Output​

$env:ProgramData/_automation/AgentProcedure/StackContent/TimeSavedByAutomation_$timestamp.csv

Attachments​

Get-VsaTimeSaved.ps1

Changelog​

2025-04-10​

  • Initial version of the document