I found SPWeb.SiteLogoUrl and expected this property in CSOM and REST. But I didn't find it. How can I get a SiteLogoUrl using CSOM or REST?
Asked
Active
Viewed 1,625 times
4
-
This issue was fixed in build 15.0.4605.1000 and in SPO. So newer SP2013 and all SPO should be without this problem when you use newer client dll. – Xiang Wu Jul 27 '18 at 08:12
1 Answers
0
It was moved to the POST request that SharePoint creates while redirecting via appredirect.aspx. So, the only one way to get Site Logo Url is to handle appredirect POST request.
To initiate redirect you should use this code snippet:
Response.Redirect(TokenHelper.GetAppContextTokenRequestUrl(sharePointHostUrl, Server.UrlEncode(targetUrl)));
ContextToken, SiteLogo, Url, Title and so on can be found in the POST FormData.

Warlock
- 7,321
- 10
- 55
- 75