Copied to clipboard

Flag this post as spam?

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


  • Rizwan 30 posts 140 karma points
    Feb 21, 2021 @ 07:15
    Rizwan
    0

    No PropertyType exists with the supplied alias

    Dear Experts,

    I am using umbraco identity which is working fine, i am trying to update member custom property using memberservice but error occurred "No PropertyType exists with the supplied alias ", i can see the member with all properties. var ms = ApplicationContext.Current.Services.MemberService; Umbraco.Core.Models.IMember mem = ApplicationContext.Current.Services.MemberService.GetById(user.Id); mem.SetValue("somalias",value);<---error

    Please help.

    Thanks

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Mar 03, 2021 @ 00:20
    Alex Skrypnyk
    0

    Hi Rizwan

    Be sure that the member has this property. How did you check that the member has this property?

    Alex

  • Jonathon Cove 26 posts 101 karma points
    Jan 13, 2022 @ 11:47
    Jonathon Cove
    0

    You can check a property exists by getting the member type and using the PropertyTypeExists method.

    To create custom properties for members please see my answer here https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/78210-add-custom-property-to-membership-member#comment-335629

Please Sign in or register to post replies

Write your reply to:

Draft