How To Trigger A Process Using .bat File – In UiPath

UiPath provides us the flexibility to trigger the robot in different possible ways. We can use… 1. The UiPath Robot icon in the system tray or 2. UiPath Studio or 3. Remotely, from Orchestrator Now let’s see how to trigger a process using .bat file!!! “UiRobot.exe_Path” /file:”Main.xaml_Path” Note: 1. UiRobot.exe_Path is your local path where … Continue reading How To Trigger A Process Using .bat File – In UiPath

How To Get The Word Count From A String – In UiPath

For a few business processes, you might be required to validate a sentence and then proceed forward. So how can we find the count of the words in a string? Let’s look at it… no_OfWords = (our_String).Split(” “c).Count.ToString Note: Simply replace the “our_String” with your required “Sentence” Example Implementation using UiPath : Let us implement … Continue reading How To Get The Word Count From A String – In UiPath

How To Get Only Headers From A Datatable In UiPath

Some times you might want to copy the schema of one excel to another excel. Let’s see how to do that with UiPath… dt_New=dt_Original.Clone Example Implementation using UiPath : Let us implement a workflow which takes a “DataTable” and displays the “Headers” of it. Step 1: Drag “Build Data Table” activity into the design panel and … Continue reading How To Get Only Headers From A Datatable In UiPath

How To Get A Datatable With Specified Columns Only In UiPath

While dealing with data table operations, sometimes we might want to retrieve only specific columns from it. How to do that? dt_New=dt_Original.DefaultView.toTable(false,”Column1″,”Column2″,…) Note: Simply replace the “Column1″,”Column2” and so on with your required Columns Example Implementation using UiPath : Let us implement a workflow which takes a “DataTable” and gives us out the “DataTable with … Continue reading How To Get A Datatable With Specified Columns Only In UiPath

How To Compare Time In UiPath

In our automation processess, we might come across situations where we are required to switch between various workflows based on time. So how can we do that? Datetime.Parse(DateTime.Now.ToString(“HH:mm:ss”)) < datetime.Parse(_Time) Note: Replace the “_Time” with your required “TimeSpan” .i.e 18:00:00, 02:00:00… Example Implementation using UiPath : Let us implement a workflow which compares the current … Continue reading How To Compare Time In UiPath

How To Get The Day Count Of The Month In UiPath

In a few business processes that we automate, some times we have to count the number of days in a given month. Let’s see how to do it in UiPath… Int date_Variable = Datetime.DaysInMonth(_year,_month) Note: 1.Replace the “_year” with your required “Year” 2.Replace the “_month” with your required “Month” Example Implementation using UiPath : Let … Continue reading How To Get The Day Count Of The Month In UiPath

How To Reverse A DataTable In UiPath

We may come across situations where we have to process the records available in excel or a data table in reverse. So let’s explore how to do that in UiPath!!! dt_Reverse = dt_Original.AsEnumerable.Reverse.CopyToDataTable Note: 1. Simply replace the “dt_Original” with your required “DataTable” Example Implementation using UiPath : Let us implement a workflow which takes … Continue reading How To Reverse A DataTable In UiPath

How To Use Rethrow In UiPath

Exception handling is one of the most important aspects of any programming, and it is something that will help us control any unseen issues during the executions. UiPath also provides us the same feature to implement robust bots, by using Try Catch activity. It has got two exception activities namely “Throw” and “ReThrow”. In this article, … Continue reading How To Use Rethrow In UiPath