Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Adding Initiator to Workflow Status Page (help!)
Vicki_Sammons
I'm trying to list a workflow's initiator on the WF status page, but I'm not too sure how to proceed. Here is what I've come up with so far.1) I've got to modify "status.html" so that the initiator will be displayed. 2) "t.WORK_OWNERID" gives me the ID number of the initiator.3) WFMAIN:WapiSession:GetWorkList is where the ID from #2 is set. Well, it's really being set by WAPI.WorkList but I have no idea where that goes. (Stepping in to that function doesn't work.)I know I pretty darn close but I can't seem to figure it out. Any help will be greatly appreciated.
Find more posts tagged with
Comments
Robert_Davies_(unlondonadmin_-_(deleted))
Hi.If I read you right then you want the user name for the ID you have retrieved? Sorry if i've misunderstood.You can use something like the following:Object uapiCtx = prgCtx.USession()// Get the user detailsRecArray dbResult = UAPI.GetUserByID( uapiCtx.fSession, item.pCreatedBy )String initiator = dbResult[1].name + "( " + dbResult[1].firstname + " " + dbResult[1].lastname + " )"I haven't put any error handling in here because I didn't bother in my own code. You'd have to go back and find where I pinched this from to see how the error handling is done. I also assume you have a prgCtx but you should be able to get that from .fRequest I think.Hope this helps.Best regards/matt.
Vicki_Sammons
You were correct in assuming that I was looking for the name that was associated with the particular ID number. With only a slight modification, that code gave me the name. Thanks for your help.Ryan