This._links = await this._getPersonalLinks(false) Something like below sp.().then(user => '`) The next approach would be, to make a rest call to find the current user's ID. And it is provided only to migrate the old code and webparts. This property is also exposed in the SPFx webpart through .userId.īut, it is not recommended to use the legacyPageContext object, as it could change in the future releases. In the classic pages one can get the current user's id using the _erId. This ID is specific to a site collection, based on the User Information List of that particular site. In this REST call, the current user's ID is used to filter the items. This can be done using the below REST call. For example, we might want to show the list items created by the current logged in user. There could be scenarios where we have to filter or query for SharePoint list items based on a Person field. How to filter list items based on a Person type field?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |