Copied to clipboard

Flag this post as spam?

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


  • Sam 23 posts 115 karma points
    Sep 27, 2018 @ 12:49
    Sam
    0

    Getting custom Member data in controller

    Hello,

    I wanted to get a property from the members area of the backend and cannot get it out easily!

    I have added a member picker to the members details tab to allow the user to assign a business(member type) as a business. How would i get the name value assigned?

    Currently i am

    1. Getting the memberId.
    2. Then getting the Guid.
    3. Stripping off 'umb://member/' from the Guid
    4. Writing a SQL query to get the name of the business from the text column in umbracoNode table WHERE Guid = Guid.
    5. Then saving that string value for business name.

    Is there an easier way?

    Many thanks,

    Sam.

  • 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