Forum Discussion
Query with api version?
Hi,
What is that api version? is that related to Transfrom sample file?
Hello Jeongkim,
Power BI automatically selects the appropriate API version for those connections.
Your SharePoint environment supports backward compatibility, so explicitly defining the API version isn’t always necessary.
If removing it causes errors, keep it to ensure compatibility.
If it's causing issues and your other reports work fine without it, try removing only the , [ApiVersion = 15] and check if the query still functions correctly.
If I ansered your query , kindly accept the solution
Thanks
Pankaj
3 Replies
- pankajnamekar25Super User
The ApiVersion = 15 in your Power Query M code refers to the SharePoint API version used when retrieving data via SharePoint.Contents().
This version is commonly used when connecting to SharePoint Online or SharePoint 2013+- AnonymousNot applicable
I see, should I keep that text?
It seems getting error if I delete ", [ApiVersion = 15]"But my other PBI dont' have api version and working well..
- pankajnamekar25Super User
Hello Jeongkim,
Power BI automatically selects the appropriate API version for those connections.
Your SharePoint environment supports backward compatibility, so explicitly defining the API version isn’t always necessary.
If removing it causes errors, keep it to ensure compatibility.
If it's causing issues and your other reports work fine without it, try removing only the , [ApiVersion = 15] and check if the query still functions correctly.
If I ansered your query , kindly accept the solution
Thanks
Pankaj