GetUserActivityCount
Returns statistics on user engagement in Teams, broken down by activities like chat messages, meeting participation, and calls.
Input
| Name | Type | Required | Accepts Output Streams | Description |
| Duration | String | True | False | Number of days to include in the user activity report. Determines the reporting period for activity data.
The allowed values are D7, D30, D90, D180. |
| FileLocation | String | False | False | Full path where the downloaded CSV report should be saved. Used when writing the report directly to disk. |
| Encoding | String | False | False | Text encoding format used for the output report file. Examples include UTF-8, ASCII, or UTF-16.
The allowed values are NONE, BASE64. The default value is BASE64. |
| FileStream | String | False | True | Writable output stream used to save the file data in memory or to an external target if FileLocation is not specified. |
Result Set Columns
| Name | Type | Description |
| Success | String | Indicates whether the report was generated successfully. Returns true if successful, false otherwise. |
| FileData | String | Contains the full contents of the generated report file if FileLocation and FileStream are not provided. |