How can I retrieve "CreatedBy" and other document properties using workflow?
Question
Question
Answer
As of Workflow 9.1, the Find Entry, Find Entries, and Search Repository activities now all have the option to include Additional Properties (such as Created By) as tokens.
Replies
Travis,
I know LF has enhanced some of the workflow activities to return extended document properties but I think the easiest way to return any any of the entry properties is with an SDK Script activity. Here is a single line code snippet that will return a string token called 'Creator' for the entry that is bound to the script. (Note: This is a 9.11 script using RA. If you need an example using LFSO let me know)
Protected Overrides Sub Execute() SetTokenValue("Creator", Me.BoundEntryInfo.Creator) End Sub
Any entry property that is exposed in the object model can be returned as a token. If you have access to the SDK documentation you can review those other properties. (Or if you are familiar with the intellisense feature in the SDK script activity you can browse the exposed properties there)