Hi.
My WTDocumets and EPMDocuments have primary content.
But wt.content.ContentHelper.getPrimary(contentHolder) method returns null for all of them.
Why?
Solved! Go to Solution.
Resolved.
ContentHolder refreshedContentHolder = ContentHelper.service.getContents(contentHolder);
ContentItem contentItem = ContentHelper.getPrimary((FormatContentHolder) refreshedContentHolder);
works fine.
Resolved.
ContentHolder refreshedContentHolder = ContentHelper.service.getContents(contentHolder);
ContentItem contentItem = ContentHelper.getPrimary((FormatContentHolder) refreshedContentHolder);
works fine.