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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...