I am trying to build an SPFx WebPart with React Office UI Fabric. I have a SharePoint list with a People field called AssignedTo
. The lookup ID
values are like 12
, 20
, and so on. When I select a person with the PeoplePicker
, I get AccountName
like i:0#.f|membership|[email protected]
and a GUID
like ff53b41e-d11a-435c-9cd1-d708e71ee7c7
.
I think the lookup IDs
like 12
refer to the UserInfo
list. I have seen calls to web.EnsureUser
, in other SharePoint projects, but the Web object (this.context.pageContext.web
) in SPFx doesn't seem to have those methods.
All the People we try to use are Office 365 users. How do I "convert" the information from the PeoplePicker
to the lookup IDs
, the People column
in the list is using?
Any help is much appreciated :-)