I am trying to use the getActivitiesByInterval method (docs: https://docs.microsoft.com/en-us/graph/api/itemactivitystat-getactivitybyinterval?view=graph-rest-1.0&tabs=http) on a set of pdf files in SharePoint to determine various access stats. This method, however, is failing a main sanity check. When viewing just /drives/{driveID}/items/{itemID}, it correctly shows that the file was created on a certain day and modified a few days later. At the very minimum, I should then be seeing the creation and the edit with getActivitiesByInterval on those respective days. Instead, all I get is
{'@odata.context': 'https://graph.microsoft.com/v1.0/$metadata#Collection(itemActivityStat)', 'value': []}
for /drives/{driveID}/items/{itemID}/getActivitiesByInterval(startDateTime='2021-06-29',endDateTime='2021-07-07',interval='day'). Is there some lag period before this information is available or something? The file was created around a week ago and modified two days ago. This seems to be a contradiction otherwise. Any help getting this information would be greatly appreciated!
