Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I create Content Saving event where i want do get the members selected by a a MultNodePicker.
When I get the value of the property, a string with comma separates member-uids is returned.
string siteMembers = args.SavedEntities.FirstOrDefault().GetValue<string>("siteMembers");
My question is: how can read a member via the memberserver with a udi? The memberservice.GetByKey method only acceptes system.guid instead of a Udi.
Best regards,
iNETZO
Found it:
var member = Current.Services.MemberService.GetByKey(((GuidUdi) Udi.Parse(siteMember)).Guid);
Hopefully this will help others with the same question.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Get members from MultiNodePicker via memberservice.
Hi,
I create Content Saving event where i want do get the members selected by a a MultNodePicker.
When I get the value of the property, a string with comma separates member-uids is returned.
My question is: how can read a member via the memberserver with a udi? The memberservice.GetByKey method only acceptes system.guid instead of a Udi.
Best regards,
iNETZO
Found it:
var member = Current.Services.MemberService.GetByKey(((GuidUdi) Udi.Parse(siteMember)).Guid);
Hopefully this will help others with the same question.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.