Copied to clipboard

Flag this post as spam?

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


  • iNETZO 136 posts 499 karma points c-trib
    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 136 posts 499 karma points c-trib
    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.

  • 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.

Please Sign in or register to post replies