Copied to clipboard

Flag this post as spam?

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


  • Dusan Stanic 2 posts 92 karma points
    Jun 27, 2019 @ 08:08
    Dusan Stanic
    0

    How do I get Member ID while editing Umbraco member in Backoffice (not "member profile page").

    Which instance-object-service provides information about the ID of the member you are editing in Backoffice? I'm not thinking of eg. myMemberService.GetById (memberShipHelper.GetCurrentMemberId ()) or the like. I need ID in order to find and change the custom property on one of the registered Members in Backoffice. Thus, the Member whose Guid is displayed in the url not the logged in member.

    Thanks in advance for any tips or answers.

    /Dusan

  • Dusan Stanic 2 posts 92 karma points
    Jul 01, 2019 @ 12:35
    Dusan Stanic
    100

    My solution in the end was to use editorState in the plugin in question.

    $scope.editorState.current.id 
    

    I included the editorState in the controller and provide my Factory with the correct ID when calling its resource. Then I send it as parameter to the endpoint for further use.

Please Sign in or register to post replies

Write your reply to:

Draft