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 6175 posts 24186 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");
    
Please Sign in or register to post replies

Write your reply to:

Draft