How to get current user Office name using SPServices?

Dec 21, 2015 at 11:02 AM
Hello,

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="//cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices.min.js"></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...
Coordinator
Dec 21, 2015 at 2:18 PM
As I mentioned over on SP Community, you should use a current version of jQuery.

M.