Copied to clipboard

Flag this post as spam?

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


  • Damion 96 posts 331 karma points
    Feb 24, 2020 @ 16:05
    Damion
    0

    Use Members service to get all members with a custom property = to a variable

    After the lines

    var _member = Members.GetCurrentMember();
    var organisationName = _member.GetProperty("organisationName").GetValue().ToString();
    

    Is there any way I can use the Members service in a one-liner to get all members where the organisationName property = the organisationName variable i have set?

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Mar 05, 2020 @ 23:58
    Alex Skrypnyk
    0

    Hi,

    Try this method:

    var members = ApplicationContext.Services.MemberService.GetMembersByPropertyValue("alias", "value");
    
  • 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