A solution how to get the last modified sites?

%3CLINGO-SUB%20id%3D%22lingo-sub-1017398%22%20slang%3D%22en-US%22%3EA%20solution%20how%20to%20get%20the%20last%20modified%20sites%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1017398%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20maybe%20someone%20has%20a%20hint.%20What%20is%20the%20best%20way%20the%20get%20the%20last%20modified%20SharePoint%20Online%20sites%3F%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20the%20Graph-APIs...%3C%2FP%3E%3CUL%3E%3CLI%3ESearch%20for%20sites%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fsite-search%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fsite-search%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%3CLI%3E%3CSPAN%3EGet%20site%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fsite-get%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fsite-get%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%3EBoth%20APIs%20have%20a%26nbsp%3B%3C%2FSPAN%3E%3CFONT%20face%3D%22inherit%22%3ElastModifiedDateTime%20property%20in%20the%20response.%20%3C%2FFONT%3EUnfortunately%3CFONT%20face%3D%22inherit%22%3E%26nbsp%3Bthe%201st%20API%2C%20Search%20for%20site%20has%20an%20issue%2C%20the%26nbsp%3B%20lastModifiedDateTime%20property%20is%20outdated.%20The%202nd%20API%2C%20Get%20site%20includes%20the%20correct%20date%2Ftime%2C%20but%20an%20information%20of%20the%20site%20(like%20the%20ID)%20is%20required.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22inherit%22%3EIn%20May%20I%20opened%20a%20case%20to%20report%20the%20issue%20and%20it%20was%20confirmed%2C%20also%20by%20a%20product%20team.%20In%20their%20answer%20they%20told%20me%20the%20solution%20is%20too%20complex%2C%20they%20have%20no%20ETA%20until%20when%20a%20fix%20is%20implemented.%20I%20recently%20checked%20the%20beta%20API%2C%20still%20the%20same%20issue.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22inherit%22%3EFor%20me%20it's%20a%20problem%20how%20to%20get%20the%20recent%20modified%20sites%20if%20the%201st%20API%20has%20outdated%20data%2C%20instead%20to%20check%20all%20sites.%20Is%20there%20an%20alternative%20solution%3F%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22inherit%22%3EBest%20regards%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22inherit%22%3ETobias%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1017398%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Graph%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Contributor

Hello, maybe someone has a hint. What is the best way the get the last modified SharePoint Online sites? 

I know the Graph-APIs...

Both APIs have a lastModifiedDateTime property in the response. Unfortunately the 1st API, Search for site has an issue, the  lastModifiedDateTime property is outdated. The 2nd API, Get site includes the correct date/time, but an information of the site (like the ID) is required. 

In May I opened a case to report the issue and it was confirmed, also by a product team. In their answer they told me the solution is too complex, they have no ETA until when a fix is implemented. I recently checked the beta API, still the same issue.

 

For me it's a problem how to get the recent modified sites if the 1st API has outdated data, instead to check all sites. Is there an alternative solution? 

 

Best regards

Tobias

 

0 Replies