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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...