Need to show some custom messages in Assistant during robot running from the coded workflows. Seems ReportStatus only available in workflows. Thanks.
Replying just to keep this alive. I only found this document on ReportStatus, which didn’t mention about usage in codedworkflows. So I guess it’s not supported.
https://docs.uipath.com/activities/other/latest/workflow/report-status
By find it a bit strange. Coded workflows not considered as workflow? If yes shouldn’t it be treated the same?
Anyone? I’m surprised I’m the only one interested in this.
Or to put it in a different way. For your robot, when the user triggers it from UiPath Assistant, how do you display progress information to the end user? Except for using the Assistant’s Job panel?
Also for the ReportStatus activity, whenever I call it, I also want the message to appear in the Log, or at least like Console.Writeline. But now I have to repeat the Log Message message below it. Is there a way to combine these two in one activity? Do I need to create my own custom activity for it?
Thanks.
Just an update after a while. Still haven’t managed to get it work. Latest code I tried:
using System.Activities;
using UiPath.Core.Activities;
…
(In the Execute function)
ReportStatus reportStatus = new()
{
StatusText = new InArgument(“Test from coded workflow”)
};
_ = WorkflowInvoker.Invoke(reportStatus);
When exeucted, there’s no exception. But when I checked the Assistant the message was still not shown
Hey! Did you ever figure this one out? Ive been needing the same thing but can’t get it to work… best I got so far was using Windows.Forms to create message boxes but its too intrusive for logging stuff for users to see, good for getting input though.
Unfortunately no. Some of the activities (e.g. PDF activities) can be invoked by the WorkflowInvoker. Some cannot. It’s a mystery. I can’t find any documentation on this. And no one from UiPath answered either.
I think it’s a sensitive topic as in how much UiPath is actually from WF (Workflow Foundation) of .Net framework. The more it’s being discussed, the more UiPath looks like just a XXXX of .NET Framework. It’s more of a business topic rather then a technical one. My client is paying a lot of money for the UiPath, same time they also paying a lot to Microsoft. So if they find out this is actually .NET thing, you know…