Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
jeongkim
Post Prodigy
Post Prodigy

Different api version missing some folder.

Hi,

with api 14 with code below, it is missing LGU+ contents in the folder. 

 

jeongkim_0-1751457910835.png

let
Source = SharePoint.Contents("https://nokia.sharepoint.com/sites/korea-pmo-pbi-data-repository", [ApiVersion = 14]),
#"Documents" = Source{[Name="Documents"]}[Content],
#"KR Cell Status" = #"Documents"{[Name="KR Cell Status"]}[Content],

 

 

wherease, api 15, it is not missing any. 

The reason I tried it with 14 was I heard 14 might not missing all the contents and better, but not sure. 

 

My SP site was created in 2023. Should I keep using api version 15? 

 

jeongkim_1-1751458076135.png

 

let
Source = SharePoint.Contents("https://nokia.sharepoint.com/sites/korea-pmo-pbi-data-repository", [ApiVersion = 15]),
#"Shared Documents" = Source{[Name="Shared Documents"]}[Content],
#"KR Cell Status" = #"Shared Documents"{[Name="KR Cell Status"]}[Content],

1 ACCEPTED SOLUTION
burakkaragoz
Community Champion
Community Champion

Hi @jeongkim ,

 

Thanks for the detailed explanation and screenshots — they really help clarify the issue.

What you're seeing is actually a known behavior difference between API version 14 and 15 in the SharePoint.Contents function.

Here’s what’s likely happening:

  • API 14 was designed for compatibility with older SharePoint structures and sometimes misses modern folders or libraries, especially in newer SharePoint Online sites (like yours, created in 2023).
  • API 15 is the newer and more reliable version for modern SharePoint sites. It handles modern document libraries, nested folders, and metadata more consistently.

Even though some sources suggest API 14 might be more stable, in practice:

  • It can fail to enumerate certain folders (like your LGU+ folder).
  • It may not fully support modern SharePoint features introduced in recent years.

Recommendation:

Stick with API version 15 — especially since your site is relatively new and you're seeing complete results with it. Unless you have a specific legacy compatibility requirement, API 15 is the safer and more future-proof choice.

Let me know if you want help optimizing your query structure or filtering specific folders dynamically.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.


This response was supported by AI for translation and text editing.

View solution in original post

1 REPLY 1
burakkaragoz
Community Champion
Community Champion

Hi @jeongkim ,

 

Thanks for the detailed explanation and screenshots — they really help clarify the issue.

What you're seeing is actually a known behavior difference between API version 14 and 15 in the SharePoint.Contents function.

Here’s what’s likely happening:

  • API 14 was designed for compatibility with older SharePoint structures and sometimes misses modern folders or libraries, especially in newer SharePoint Online sites (like yours, created in 2023).
  • API 15 is the newer and more reliable version for modern SharePoint sites. It handles modern document libraries, nested folders, and metadata more consistently.

Even though some sources suggest API 14 might be more stable, in practice:

  • It can fail to enumerate certain folders (like your LGU+ folder).
  • It may not fully support modern SharePoint features introduced in recent years.

Recommendation:

Stick with API version 15 — especially since your site is relatively new and you're seeing complete results with it. Unless you have a specific legacy compatibility requirement, API 15 is the safer and more future-proof choice.

Let me know if you want help optimizing your query structure or filtering specific folders dynamically.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.


This response was supported by AI for translation and text editing.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.