Copied to clipboard

Flag this post as spam?

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


  • Laureline 20 posts 161 karma points
    Jun 10, 2016 @ 14:58
    Laureline
    0

    MemberServiceSave returns member with empty properties

    Hi,

    I use Umbraco V7 and I've a problem with the MemberServiceSave method. I want to send a mail after creating a member with its properties. When I create a new member and I save it, I enter the MemberServiceSave method but the currentMember contains properties with null values. The member is correctly created.

    I've tried with ContentServiceSave method and it worked. I get the properties of the content saved.

    Here is my code :

    Private Sub MemberServiceSave(Sender As IMemberService, args As SaveEventArgs(Of IMember))
            Dim currentMember As Member = args.SavedEntities.FirstOrDefault()
    
                SendMailMember(currentMember)
            End If
    
        End Sub
    

    Thanks for your help

  • Laureline 20 posts 161 karma points
    Jun 21, 2016 @ 10:52
    Laureline
    0

    Up! Does someone have a solution please ?

  • Laureline 20 posts 161 karma points
    Jun 30, 2016 @ 07:19
    Laureline
    0

    I solved my problem.

    Actually, when a member is created, the saved event is called 3 times, eventually the properties are set.

Please Sign in or register to post replies

Write your reply to:

Draft