SharePoint 2013 How to get User Language Preferences with REST API

 
 <script src="/_layouts/15/sp.requestexecutor.js"></script>  
 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>  
 <script type="text/javascript">  
   function handler(restURI, s, f) {  
     var restUrl = _spPageContextInfo.webAbsoluteUrl + restURI;  
     var executor = new SP.RequestExecutor(_spPageContextInfo.webAbsoluteUrl);  
     executor.executeAsync(  
       {  
         url: restUrl,  
         method: "GET",  
         headers: { "Accept": "application/json; odata=verbose" },  
         success: s,  
         error: f  
       }  
     );      
   }  
   function success(data) {      
     var jsonObject = JSON.parse(data.body);      
     var results = jsonObject.d.UserProfileProperties.results;       
     for (i = 0; i < results.length; i++) {  
       if (results[i].Key.indexOf("SPS-MUILanguages") > -1) {           
         $('#MUILanguages').append(results[i].Value);  
         break;          
       }  
     }  
   }  
   function fail(data, errorCode, errorMessage) {  
     $('#MUILanguages').append(errorMessage);   
   }  
   $(function () {  
     handler("/_api/SP.UserProfiles.PeopleManager/GetMyProperties", success, fail);  
   });  
 </script>  
 <div id="MUILanguages"> </div>  
Previous
Next Post »
9 Komentar
avatar

The given information was very excellent & Great tips, and awesome way to get exert tips from everyone,not only i like that post all peoples like that post,because of all given information was wonderful and it's very helpful for me.
html5 training in chennai

Balas
avatar

Thanks for sharing this information, it helped me a lot in finding valuable resources for my career
Dotnet Training in Chennai

Balas
avatar


I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.
Myntra Cashback Coupons 2018
Myntra Cashback

Balas
This comment has been removed by the author. - Hapus
avatar

I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 

rpa training in chennai
rpa training in bangalore
rpa course in bangalore
best rpa training in bangalore
rpa online training

Balas
avatar


flipkart big shopping days,
flipkart big shopping days sale,
flipkart big shopping days 2018,
flipkart big shopping days offers,
flipkart big shopping days sale 2018,
flipkart next big shopping days,
big shopping days in flipkart,
flipkart online shopping big billion day,
flipkart big apple shopping day,
flipkart big shopping days 2017,
flipkart big shopping days terms and conditions,
flipkart big shopping days sbi offer,
flipkart big shopping days hdfc offer,
flipkart big shopping days mobiles,
flipkart big shopping days 2018 redmi note 5 pro,
flipkart big shopping days 2018 offers,
flipkart big shopping days date,
flipkart big shopping days hdfc,
flipkart big shopping days oppo f7,
flipkart big billion day online shopping,
big app shopping days in flipkart,
flipkart big shopping days 2016,
flipkart big shopping days 2017 sbi offer,
flipkart big shopping days july 2018,
flipkart big shopping days may,
flipkart big shopping days may 2018

flipkart yes bank offer,
flipkart yesterday offer,
flipkart yes bank offer,
flipkart debit card emi yes bank





flipkart citi offer,
flipkart citibank offer,
flipkart citi credit card offers,
flipkart citibank offer 2018,
flipkart citibank,
flipkart citibank offer august 2018,
flipkart offers for citi credit card,
flipkart citibank rewards points,
flipkart citibank offer 2019,
flipkart citi cash back offer,
flipkart citibank 10 cashback offer,
flipkart citibank card offer,
flipkart citibank cashback offer,
flipkart citibank offer 2017,
flipkart citibank offer jan 2018,
flipkart citibank offer freedom sale




flipkart citibank offer,
flipkart citibank offer 2018,
flipkart citibank,
flipkart citi credit card offers,
flipkart citibank credit card offer,
flipkart offers for citi credit card,
flipkart citibank card offer

Balas
avatar

Thanks for post ing such an useful and informative stuff.SVR Technologies is the best online training institute for Selenium Online Training and we also offer self learning on Selenium Tutorials which will be very helpful for Selenium Tutorial for Beginner

Balas
avatar

This is very useful article.
Thanks a lot. You save my time :) God bless you

Balas
avatar

Regular visits listed here are the easiest method to appreciate your energy, which is why why I am going to the website everyday, searching for new, interesting info. Many, thank you. Wondering where to go in 2020? Things to do has ranked as the best include a remote, idyllic island and the design capital.

Balas