Dismiss Notice

Register now to be one of the first members of this SharePoint Community! Click here it just takes seconds!

Dismiss Notice
Welcome Guest from Country Flag

How to get current user Office name using SPServices?

Discussion in 'Official Microsoft News' started by Viipiin Tyagi, Dec 21, 2015.

Thread Status:
Not open for further replies.
  1. Viipiin Tyagi

    Viipiin Tyagi Guest

    Blog Posts:

    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">


    var thisUser = $().SPServices.SPGetCurrentUser();

    var userOffice = $().SPServices.SPGetCurrentUser({
    fieldName: "Office",
    debug: false



    Help Me Out ......

    Thanks in Advance...

    Continue reading...
Thread Status:
Not open for further replies.

Share This Page

LiveZilla Live Chat Software