SOLVED

What's the difference between GetSitePropertiesFromSharePoint and GetSiteProperties

%3CLINGO-SUB%20id%3D%22lingo-sub-758913%22%20slang%3D%22en-US%22%3EWhat's%20the%20difference%20between%20GetSitePropertiesFromSharePoint%20and%20GetSiteProperties%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-758913%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20PNP%20is%20using%20the%26nbsp%3B%3CSPAN%3EGetSitePropertiesFromSharePoint%20because%20the%20GetSiteProperties%20will%20be%20deprecated%2C%20but%20I%20didn't%20find%20any%20official%20message%20from%20Docs%20web%20site%20to%20say%20why%20and%20the%20difference%20between%20the%20two%20APIs%2C%20any%20one%20knows%20this%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ELong%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-758952%22%20slang%3D%22en-US%22%3ERe%3A%20What's%20the%20difference%20between%20GetSitePropertiesFromSharePoint%20and%20GetSiteProperties%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-758952%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F98490%22%20target%3D%22_blank%22%3E%40Long%20Liang%3C%2FA%3EI%20think%20this%20blog%20answers%20your%20question%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fwww.ktskumar.com%2F2018%2F05%2Fget-site-collections-sharepoint-online-tenant%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.ktskumar.com%2F2018%2F05%2Fget-site-collections-sharepoint-online-tenant%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20short%3A%20GetSiteProperties%20doesn't%20return%20modern%20site%20collections%20and%20GetSitePropertiesFromSharePoint%20does.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-759527%22%20slang%3D%22en-US%22%3ERe%3A%20What's%20the%20difference%20between%20GetSitePropertiesFromSharePoint%20and%20GetSiteProperties%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-759527%22%20slang%3D%22en-US%22%3EYes%2C%20that's%20right!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-759524%22%20slang%3D%22en-US%22%3ERe%3A%20What's%20the%20difference%20between%20GetSitePropertiesFromSharePoint%20and%20GetSiteProperties%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-759524%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1803%22%20target%3D%22_blank%22%3E%40Paul%20Pascha%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%20So%20any%20site%20collections%20show%20in%20new%20SharePoint%20online%20Admin%20UI%20will%20be%20available%20with%20this%20API%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi All,

 

I know PNP is using the GetSitePropertiesFromSharePoint because the GetSiteProperties will be deprecated, but I didn't find any official message from Docs web site to say why and the difference between the two APIs, any one knows this?

 

Thank you.

Long

3 Replies
best response confirmed by Long Liang (Occasional Contributor)
Solution

@Long LiangI think this blog answers your question:

http://www.ktskumar.com/2018/05/get-site-collections-sharepoint-online-tenant/

 

In short: GetSiteProperties doesn't return modern site collections and GetSitePropertiesFromSharePoint does.

@Paul Pascha 

 

Thank you. So any site collections show in new SharePoint online Admin UI will be available with this API?