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

New Post: SPGetCurrentUser in SharePoint 2013 _spUserId is undefined problem solved

$
0
0
We were having problems getting SPGetCurrentUser to work in SharePoint 2013 but it had worked in SharePoint 2010. We are using SPServices 0.6.1. We kept getting an '_spUserId is undefined' error. We discovered that _spUserId has been deprecated in SP2013 and you are supposed to use _spPageContextInfo.userId instead. We made this substitution in our SPServices library and it solved the problem.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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