Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: $().SPServices.SPGetCurrentUser isn't returning ID

$
0
0
SimK:

I think I may have a bug. If you request the ID singly, like so:
var currentUser = $().SPServices.SPGetCurrentUser({
  fieldName: "ID"
});
I think it will work fine. However, using fieldNames, it doesn't look like I do the appropriate check for undefined.

I'll add this to the Issue Tracker. In the meantime, you can just use the JavaScript variable _spPageContextInfo.userId.

M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>