Drive Items Analytics #2690
malvarezColabra
started this conversation in
General
Replies: 1 comment 3 replies
-
Thanks for raising this @malvarezColabra Any chance you can also share the code sample you are using to make the request with the SDK? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello to everyone. I´m working in a script in C# to scan all files in a given site.
I have test every call in the graph explorer and they work just fine, except one. In the graph explorer I have tested this call
https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{driveItem-id}/analytics/allTime?$expand=activities($select=activityDateTime)&$select=activities,access
The result of that api in graph explorer is
{ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.itemActivityStat", "access": { "actionCount": 2, "actorCount": 2, "timeSpentInSeconds": 0 }, "activities": [ { "activityDateTime": "2024-09-30T18:56:56Z" }, { "activityDateTime": "2024-04-16T21:39:27Z" }, { "activityDateTime": "2024-04-16T21:38:37Z" } ] }
When I test this in C# the activity returns null
Anyone have an idea why this is not returning data?
Beta Was this translation helpful? Give feedback.
All reactions