This project has moved and is read-only. For the latest updates, please go here.

How to get current user Office name using SPServices?

Dec 21, 2015 at 11:02 AM

I am using SPService to get the current user office name in Office365 but it is not working as expected.

The code is as below...

<script src="/SiteAssets/jquery-1.3.2.min.js" type="text/javascript"></script>

<script type="text/javascript" src="//"></script>
<script type="text/javascript"> $(document).ready(function(){ var thisUser = $().SPServices.SPGetCurrentUser(); alert(thisUser); var userOffice = $().SPServices.SPGetCurrentUser({ fieldName: "Office", debug: false }); alert(userOffice); }); </script> Help Me Out ......

Thanks in Advance...
Dec 21, 2015 at 2:18 PM
As I mentioned over on SP Community, you should use a current version of jQuery.