Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • iNETZO 93 posts 412 karma points
    Oct 29, 2019 @ 13:39
    iNETZO
    0

    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.

    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

  • iNETZO 93 posts 412 karma points
    Oct 29, 2019 @ 14:14
    iNETZO
    0

    Found it:

    var member = Current.Services.MemberService.GetByKey(((GuidUdi) Udi.Parse(siteMember)).Guid);

    Hopefully this will help others with the same question.

Please Sign in or register to post replies

Write your reply to:

Draft