AI OnAI Off
Hi Rich,
You can get like this-
using EPiServer.Approvals.ContentApprovals;
ContentApprovalDefinition definition;
IApprovalRepository approvalRepository;
var approvals = await approvalRepository.ListAsync(new ContentApprovalQuery
{
Username = "user",
Status = ApprovalStatus.InReview,
DefinitionID = definition.ID
});
More info-
I am looking for a solution to get all content with a status "Awaiting Your Review" when Content approval is enabled. I know its available in Task Pane but I want to access this through code.