Does anyone know how to get a process model's "Last Published By" user? I can't find anything in the portal reports that exposes this information (though it's easily available via the modeler and the application manager)
OriginalPostID-223444
Discussion posts and replies are publicly visible
Tried using it process report where in we need to show last modified by after republishing the PM. But on the report it would not show up
use below code in Column Definition of process report.
split(split(getProcessModelDetailsByUUID( pm!id),",")[6],":")[2]
ganeshbabuj said:use below code in Column Definition of process report.
I have no reason to think this would work. getProcessModelDetailsByUUID is a plug-in function, and process reports are very touchy about which functions can run at all in column data (even some OOB functions don't work; in my experience the only ones you can assume will work are primitive functions, and maybe other simpler ones).
What I was originally suggesting above is a *process* that takes the UUIDs output from a process report, then loops over them in-process to get the plug-in function results for each model, then deals with them all from there. It's slow but it works. These days, given the advent of a!forEach() etc, a lot of this could probably be done in an expression rule.
Thanks Mike, Had moved the code to Interface and now it works. Only issue is the screen loads very slowly with pagination of 100. Guess its expected as we are calling this plugin function on every row.
Yes, per my past testing the plug-in takes a few seconds to run every single time.