I was testing WFA 5.0 RC1 and noticed that the variable "$_WFAUser" is no longer working with the new HTML5 GUI. How do get the information which user is running the workflow now?
Hi,
I've raised the issue with the WFA development team. I should be fixed with WFA 5.0 GA. Thanks for flagging this issue
/Matt
I haven't tested this is WFA 5.0 however the following code has worked in previous versions. Try this:
[String]$workflowName = $(Get-WfaRestParameter "workflowName")[Int]$workflowId = $(Get-WfaRestParameter "workflowId")[String]$commandName = $(Get-WfaRestParameter "commandName")[Int]$jobId = $(Get-WfaRestParameter "jobId")[String]$userName = $(Get-WfaRestParameter "userName")
You should be about to use the "Get-WFARestParameter" cmdlet to enumerate the information you require about the current workflow.
Hope that helps
I need the user name before starting the command. I use it to populate a user input query. So far this worked by using the pre-defined variable "$_WFAUser".
Same problem here, no longer works with v5.