Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm currently using ContentService Events to detect when a writer sends a content item for approval.
I'm able to reference the writers id with the following code with the help of Entities.
var mwriter = e.Entity.WriterId;
But how do we also get the full name of the writer?
Solved my issues by using Umbraco's ApplicationContext Class. The following helped:
var mwriter = e.Entity.WriterId; var mwriterprofile = ApplicationContext.Current.Services.UserService.GetProfileById(mwriter).Name;
is working on a reply...
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.
Continue discussion
How to find the name of the writer based on Entity WriterId
I'm currently using ContentService Events to detect when a writer sends a content item for approval.
I'm able to reference the writers id with the following code with the help of Entities.
But how do we also get the full name of the writer?
Solved my issues by using Umbraco's ApplicationContext Class. The following helped:
is working on a reply...
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.