Robotic Power Automation With Microsoft Power Automate by Shantha Kumar || Lightup Conference
Nov 16, 2023
Easy way to getting started with Robotic Power Automation using Microsoft Power Automate's UI Flows.
Conference Website: https://www.2020twenty.net/lightup
#lightup #2020twenty
Show More Show Less View Video Transcript
0:00
Thank you
0:29
Thank you
0:59
Thank you
1:29
Thank you
1:59
Thank you
3:30
Thank you
4:30
Thank you
4:59
Thank you
5:29
Thank you
5:59
Thank you
6:29
Thank you
6:59
Thank you Thank you
7:54
Thank you
8:24
Thank you
8:54
Thank you
9:24
Thank you
9:54
Thank you
10:24
Thank you
10:54
Thank you
11:24
Thank you
12:25
Thank you
12:54
Thank you
13:24
Thank you
13:54
Thank you
15:25
Thank you
15:54
Thank you
16:24
Thank you
16:54
Thank you
17:24
Thank you
17:54
Thank you
18:24
Thank you
18:54
Thank you
19:24
Thank you
19:54
Thank you
20:24
Thank you
20:54
Thank you
21:24
Thank you
21:54
Thank you
22:24
Thank you
22:54
Thank you
23:24
Thank you
23:54
Thank you
25:25
Thank you
25:54
Thank you
26:24
Thank you
26:54
Thank you
27:24
Thank you
27:54
Thank you
28:24
Thank you
28:54
Thank you
29:24
Thank you
29:54
Thank you
30:24
Thank you. Thank you
30:59
Thank you
31:29
Thank you
32:30
Thank you
32:59
Thank you
33:29
Thank you
33:59
Thank you
34:29
Thank you
34:59
Thank you
35:29
Thank you
35:59
Thank you
36:29
Thank you
36:59
Thank you Thank you
37:54
Thank you
38:24
Thank you
38:54
Thank you
39:24
Thank you
39:54
Thank you
40:24
Thank you
40:54
Thank you
41:54
Thank you
42:54
Thank you
43:24
Thank you
43:54
Thank you
44:24
Thank you
44:54
you Thank you
45:24
Thank you
45:54
Thank you
46:54
Thank you
47:24
Thank you
47:54
Thank you
49:24
Uh, is that my screen visible? Yeah, your presentation is visible
49:34
OK. Then it's top of the hour, so you can get started
49:41
OK, thank you. Welcome everyone to the light of virtual
49:50
conference and so and so we are going to we are going to see about how to use Microsoft power automate
49:59
to enable the automation on legacy desktop application using the robotic process automation technology. So before jump into
50:08
our slides, so we have to try I'll say thank to C Sharp Corner
50:13
and our sponsors for providing the great opportunity and then. and then also uh thanks to unicef uh for the support and so while watching this maybe uh you
50:28
can donate uh to the unicef for our our conference and also to support for the unicef okay so just
50:38
please uh and then uh you can just you can also share your uh feedback on speaker by scanning this
51:15
Contributor is contributing to PNP and office six way office six way CLI in github so and you can also catch me on in the name of KTS Kumar in Facebook Twitter and YouTube
51:33
So what is a robotic process automation? This is nothing but a technology of creating and training a software bot to emulate the human interactions
51:44
Okay, and then based on human interactions, it will automate the business processes
51:52
So this is nothing but it just imitates the human's actions and enables that on a digital
51:59
platform in a sequence steps to generate the valuable output. And this helps us to automate lot of repetitive tasks, a lot of complex tasks to reduce the
52:12
human effects. Okay so we see how the Microsoft Power Automate which uses this robotic process technology to enable this kind of automation So currently at the Microsoft Power uh previously they had automated flow for uh just automating the entire flow of if the application has a api and all and then instant flow
52:41
you can just click on or click on the button or that will trigger that uh the actual automation
52:48
flow and schedule for you can just schedule the automation everywhere anything of from a device
52:55
to automate the flow actual flow of that is workflow process or business process the business
53:02
process flow is nothing but it's just a sequence of steps you have to for that we can enable to
53:08
automate the certain things but in addition to that microsoft have added uh flow there's a ui
53:16
flow which brings the robotic process automation capabilities to the power automate because this
53:24
enables us to automate any repetitive tasks in windows and web applications because this will
53:32
track all the human actions and playbacks those by capturing what are all the actions actions we
53:40
have done by clicking or clicking the mouse or just entering some text in a keyboard or
53:45
inputting any text to the text boxes or some input controls okay okay and this this view flow
53:55
which enables us to automate anything which may give it which application doesn't have any api
54:03
and which is very complex in doing a lot of human actions so this view flow which you easiest that
54:11
way and then because this this will record all the human actions and automate the playback of
54:18
one manual steps on legacy software because we microsoft and recommends this uiflow for
54:28
running uh just automating the repetitive task mostly on legacy software because the legacy
54:34
software doesn't have any i think in decade previous decade application doesn't have uh
54:40
much APIs to access access through web services or this API so during those applications we can use
54:49
the UI flow for automating those repetitive tasks on those softwares and mostly Microsoft have
54:59
recommended to use a UI flow to run the desktop and web applications that do not have APIs available
55:07
for automation because if there is the apis available we can use other flows like automated
55:13
flow instant flow because that contains lot of actions within it and that by using that action
55:19
we call any api and we can run that flow but this view flow which mostly we can use it on
55:28
legacy software or any applications which doesn't support much apis So this VA flow which brings that robotic process automation feature to the Microsoft Power Automate
55:44
So what we can do with VA flows? We can automate the two types of applications
55:53
mostly desktop application and web applications. The desktop application mostly this view flow which will enable to run on which mostly compatible with the Windows 10 Pro and Windows Server 2016 and 2019 machines
56:10
Because this mostly this view flow which contains the DLL or this code which mostly run on these servers
56:19
So we can use this way we can run this view flow on these desktop machines
56:27
For the web applications, we can also create a web application, automate the web applications, even though those web applications support the API, but some previous a lot of the legacy based applications or if you want to just do some automation work in your websites so that we can do with creating a UI flow for web applications
56:50
mostly with this web application UI flow which is compatible with Microsoft Edge
56:56
chromium version and a latest version of Google Chrome okay so that desktop UI
57:04
flow so as as we saw we have two type of applications we can create with you
57:10
go desktop and web flow so how we can create that desktop UI flow so there are
57:17
two options available there are two tools is available in uiflow under the microsoft power
57:23
automate one is uiflow record app and another one is win automation the uiflow to use the uiflow
57:34
record app we have to install uiflow installer that is setup.microsoft.powerautomate.uiflow.exe and after installing that we have to enable uiflow browser extension to the appropriate uh
57:50
browser that those browser extension also available from the store microsoft edge store or google
57:56
chrome store so once you enable it you have to launch it as a record app because once it's
58:03
installed the record app it gets uh gets start running so by using the browser in the browser
58:10
itself we can just launch it as a card app through the ui flow so once the record app is launched we
58:17
have to record the human actions and then after capturing the human actions we have to just save
58:24
it to the uiflow that's it the uiflow the card up uiflow is created using the uiflow recorder
58:31
next one is win automation we know for for using that window automation we have to install this
58:41
uiflow installer and then we have to create a gateway okay which enable which enables this
58:49
attended RPA because if you have if you are using a paid or trial edition trial edition of Microsoft
58:56
Power Automate attended RPA, you will get this Win Automation tool. So once you get it, you can install and you have to install this Win Automation to your desktop machine
59:09
And then you have to create your on-premise gateway. OK, in the Microsoft Power Automate site itself, you have to install, you have to download that on-premise gateway and then enable it
59:20
OK, after that, you have to sign into Win Automation tool, which you have already installed
59:26
So after that, you have to run that window automation. You have to create a process inside of window automation tool and then run the process
59:36
And then you can save it. That gets saved to Power Automate. So that's it
59:40
So this is the two tools it uses to enable the desktop automation
59:49
Next one is Web UI flow. So we saw two tools is available for desktop automation
59:56
but for WebViewer flow we can have Selenium ID tool so we can use this tool to enable to automate the web flow so if you want to automate
1:00:07
maybe if you want to capture all the images from the site you have open in the chrome or open edge
1:00:14
or if you want to get all the search records which have which have searched for certain keyword
1:00:21
so if you want to capture those things automatically you want to capture those things and then you want
1:00:26
to send it to some mail or send it to some uh mobile id so this web ui flow definitely helps
1:00:33
and if you want to just uh calculate the currency for the current every day you can create a scheduler
1:00:39
scheduler auto automated flow to launch this web ui flow to capture a daily uh currency rate that's
1:00:47
also possible we can use it use this will be a flow order so to enable this to create a web ui
1:00:54
flow we have to install uiflow installer and then we have to install and enable the selenium ide
1:01:00
browser extension this enables us to automate the or capture the elements within a website and then
1:01:09
it helps us to automate also so once this is enabled we have to launch the selenium recorder
1:01:16
in this will open the selenium recorder application from there you can start recording
1:01:22
or the start recording from selenium ide so once the whatever you have you whatever actions you
1:01:30
want to capture capture it after capturing it you can stop recording from selenium ide once it's
1:01:36
stopped it's automatically gets saved and then updated to the microsoft power automate flow
1:01:43
So these are the two applications and then how to create these flows
1:01:50
So let's see how to create a desktop, how to automate a legacy application
1:01:59
actions related to legacy applications. So let's move on to demo now
1:02:07
So let me share okay so i have i have uh i have already logged into office.com
1:02:38
and here you can see uh the list of apps available in my office uh this to be tenant
1:02:47
let me select the power automate okay so uh currently i'm in a power automate uh home page and then i am going to go to just click
1:03:04
create you can see the list of flows under the power automate these are the list of the flows
1:03:14
we can create using the microsoft power automate so i'm going to select this ui flow
1:03:20
so you can see the two applications desktop app and web app click on the desktop app click next
1:03:28
Next, you have to give some name for the flow be light up
1:03:35
Flow demo. Click on next. You have to give, because currently I am maybe we have a scenario like you want to migrate
1:03:54
some legacies of the contents to the share point. okay let's take that example so it has lot of appointment information in it so we have to
1:04:02
capture all the appointment information and move it to sharepoint so so we have some we have uh
1:04:10
information about some uh appointment id so okay based on that appointment id we have to capture
1:04:16
the patient information and then we have to move that information to sharepoint so i am having the
1:04:24
input as appointment ID and then
1:04:38
I'm doing some appointment ID number and so click on next so this is a start your
1:04:50
uiflow so below to that we have to click new step and then we can see the two tools available okay
1:04:58
under the uiflow for the desktop recorder and window automation just click on recorder
1:05:06
click on the record app action now we can see we have to download and install the uiflow's installer after installing it we have
1:05:18
to enable the browser extension right i have already installed and have the browser extension
1:05:25
in my uh microsoft edge i have to enable it so just go to my uh extension section
1:05:34
so and then i'm enabling this enable extension once uh it gets any enabled
1:05:43
where to come here maybe I saw it automatically gets sink but it's not
1:05:50
doing that so what I'm doing is I'm disclosing this entire browser and then
1:05:58
I'm going to re-login okay so just close this this is a SharePoint site here we
1:06:05
are going to store that information the appointment ID patient ID and gender so
1:06:30
okay then select them up power automate
1:06:40
same create we flow desktop app next so before that we have to ensure this ua flow services running or not
1:07:00
if it is not run we have to start it manually so because if it doesn't run we are unable to launch it as a recorder app
1:07:09
so just ensure this this is running select a desktop app next and then write up demo
1:07:22
or pa the ID which is available in that application so that I have just copied and pasted here
1:07:54
Click next. The same step, new step. Click on the recorder, the choice in action and then select the recorder app
1:08:07
So we have enabled that extension so that we got this launch recorder button
1:08:13
So just click on this launch recorder. so wait for a few seconds you can see now there is a record uh recorder app is open
1:08:24
in the top of the screen okay so if you want to just run this maybe i'll i'll minimize
1:08:31
this browser so there is a legacy of application is there okay so and then just use
1:08:43
start sorry so just click on this record to start recording the human actions i have just
1:08:52
selected it and then just select the title of that application a wait until that blue
1:08:58
bar should come so then only the application captures it so just click on this and i have
1:09:04
we have already have input so i'm just entering that input here okay so it's and then search
1:09:12
click on the search you can get the information so to get the output just
1:09:18
click this appointment ID and then get selected text on screen click on that number and
1:09:31
And then get appointment ID. As output. Save
1:09:41
And then if you want to get a patient ID, just. Select click on the output, select text on screen
1:09:51
Then select the text box. It's automatically the value is captured and we have to provide the output name variable name
1:09:59
patient ID. Okay and then click save. So to capture the gender, click go to output, select
1:10:11
text on screen, click on that gender text box. We have got it. Gender. Click save. So we
1:10:21
We have three output variables now once it is done just click on done
1:10:28
OK, so this. This is captured now. So once this is captured, you can see it here
1:10:36
Launch legacy appointment tab left click. So what are the actions we have done
1:10:42
So that is visible here. That is selecting the title bar. So selecting the title bar means we are just focusing to that
1:10:49
application so after that we have selected clicked on the particular text
1:10:55
box and then we have given a input to the text box oh there's some problem in
1:11:03
it because it's not captured the actual one so I think we have to repeat the
1:11:09
same thing once again so because it's it's not captured that particular text
1:11:14
box so it's it's uh it's select on that uh the recycle bin icon so i think we have to just
1:11:22
otherwise we have to delete this particular one and then we have to redo it so instead of that
1:11:27
we can just delete the entire option and then we can start from scratch click on new step record
1:11:38
record app launch recorder Okay, so I think before this we will close this
1:11:51
Open this launch app. Click the record and then select the title box
1:12:04
Select the text box. Give the appointment ID value here
1:12:14
on then search you got output click on the appointment id value select select
1:12:22
text from screen appointment id then
1:12:32
select text from screen and then patient ID save and then get click on the outputs select text on screen click on that
1:12:46
and then click the gender text box got it send that save it then done so once it's
1:12:58
done just close the application so i think uh you have got the successful now
1:13:09
yeah i think in the input text input we have uh got a screenshot which shows that we have
1:13:15
selected that text box once this is done this this is what we can ensure it so everything is
1:13:24
uh we have successfully got it okay so and then let us if you want to test it so maybe uh we can
1:13:34
add in the end of that we have to add a close action so it automatically closed that application
1:13:41
the open application close application that's it yeah so that's it click on the next
1:13:50
so we have captured the three outputs click next so this is a one maybe i'm just giving the six
1:14:01
just now click on the text just so i'm not doing anything right now so i have just uh
1:14:11
taken my uh hand from the keyboard and mouse you see the open the application gets open and the most uh the most most selected a title
1:14:26
or the focus it it focuses the application and then it automatically enters the given input
1:14:33
after that it will automatically click on the search and then it captures each data
1:14:38
and then it automatically closes it you'll see that just wait for just few seconds
1:14:52
okay now it selecting the patient ID or it copying that patient ID information and then it moves to its it moves to focus to the gender text box and capture that information
1:15:05
You wait for it. It won't take much time
1:15:16
Because for each action the UI flow takes some few seconds to run it
1:15:23
So it waits for a few seconds. You can see everything is run successfully
1:15:29
And then you got this output. um it's not showing here okay maybe uh
1:15:42
yeah you can see the output text one appointment id this is patient id and then this is gender
1:15:49
then save and exit yeah that's it we have automated the the human actions using this eiflow so because this kind
1:16:02
of applications windows desktop application doesn't have api so because uh mostly uh the clients also
1:16:10
uh didn't provide access to those those environment or the where they store the data or
1:16:17
maybe that gets uh trickier they the data gets trickier strictly saved so we couldn't be able to
1:16:24
capture it so for those kind of applications we can use this view flow to capture that okay so we
1:16:32
have just automated this human actions so now we'll see uh the next one uh we'll move on to slide
1:16:45
again this is again so
1:17:32
okay i've just missed that so let's move on to the presentation i just want to show one slide now
1:17:57
one second okay so now we have done that the automation of human interactions but if you want to automate
1:18:14
those the actual human interactions from outside so that's how we can do it so for that the microsoft
1:18:22
power automate provider two options one is attended and another one is unattended okay
1:18:29
so these two options two automation options enables us to run the humans run this via flow from
1:18:38
other other microsoft power automate flows like we can use the instant flow or button flow or
1:18:44
to trigger this uh ui flow or we can use the schedule for to trigger this uh this ui flow or
1:18:52
we can use the automated from somewhere else for sending email through the sender through the uh
1:18:57
email also we can trigger this a flow that's where it comes attended and unattended because whatever
1:19:05
whenever we want to run this vi flow we have to use some desktop to run this application okay so
1:19:13
first one is attended attended means we have to uh we have to run the particular ui flow on a active
1:19:22
active session that is the user should always open that windows windows environment so that this
1:19:30
attendant flow that ui flow which configured with attended can run otherwise it constant because it
1:19:36
always the uh run in the user session only so this user session always should be active if you want
1:19:43
to run this attended wayflow so and then this will be always useful to automate enough repetitive
1:19:50
tasks or the user the human interaction somewhere needed or human need to monitor those actions
1:19:58
for those UA flows we can use the attendant. For unattended, it's simple
1:20:05
So if the user, no need to log into the system. So if you trigger that, it automatically, the UA flow, it automatically log into the user session
1:20:15
and then it runs or runs every, runs whatever the human actions need to do, it runs
1:20:21
and then it automatically closes the application and then it automatically sign out from that
1:20:27
windows environment windows session so during that time no one should log into that particular target
1:20:33
machine so and then this will be useful for fully automated tasks so because if you have you have
1:20:40
a separate vm and then you can run any kind of automation task that is uiflow related task this
1:20:49
for those things you can use this unattended uiflow automation option so we'll see how to do that
1:20:56
so let i'll i'm going to just create a button flow from that button flow that is instant flow
1:21:03
by using that instant flow that if i click on that button it will trigger that ui flow so whatever
1:21:09
the ui flow we have created that would automatically get triggered from up outside of that particular ui
1:21:15
flow see this i'm i'm going to share my share my remote desktop comes again
1:21:30
okay so we are in our environment and then i'm going to my flows so because i have already created
1:21:45
a sample demo yeah okay so this is a but an instant flow app so let me show you how to create
1:21:55
at instant flow just click on new flow and then click on instant from blank you have to give some
1:22:02
demo light if
1:22:15
automation demo click on this manual trigger manually trigger a flow and then click create this was created in here we have to add our actions So after click on that button whatever we need to do so we have to add the steps here
1:22:36
So I have already created some sample flow, so I'm going to use this
1:22:40
So this is a light wave flow attended automation demo. So I'm going to use the attended because we have already logged into the system
1:22:48
So I have this created this. So we want to just use this attended automation or unattended automation
1:22:55
So we have to create an on-premise gateway for the on-premise gateway
1:23:00
We have to install the on-premise gateway from here. Maybe I'll show you that
1:23:05
So under the data, you can see gateways. Click on that gateways
1:23:12
And because in the gateway we have to provide the machine domain name, user name and credentials that is password information to that so that it will allow it automatically log in to the system and then it will run this human actions
1:23:29
Just click on this new gateway, it reads to that. You have to install this on-premise data gateway in your machine
1:23:38
So I have already installed it so I am just closing it so here after installing it you
1:23:44
have to just create it and you should have active one here
1:23:49
I am going to my flows. Edit this light up view flow attended automation demo click on this
1:23:59
So I have already just created and then I have initially have provided an initial variable
1:24:05
five six four two nine one zero and then i'm giving some loops so i want to just run for
1:24:11
some three times or two times so i have added like this you can see uh the variables i have added
1:24:19
the two to the appointment id so i have i want to look two two times and then i have this
1:24:26
check do until the appointment id should be greater than this appointment loops so it will
1:24:35
run at three times so and then incremental variable so i'm each running i'm just incrementing
1:24:44
this appointment id so that it checks with this appointment loops and run it okay so here i'm
1:24:51
going to add an action to call that uiflow so uiflow run a uiflow for a desktop click on it
1:25:03
so you can see the uiflow what uiflow you want to run it i'm going to select the light up rpa demo
1:25:11
click on that and then run mode there are two options attended and unattended i'm going to
1:25:17
select an attended and appointment id i am going to give it from the appointment id okay we have
1:25:26
given the input also as well okay so once it is done if you want to save it to sharepoint i'm just
1:25:35
moving up okay and then i'm going to add to save it to sharepoint so just add an action and then sharepoint
1:25:51
okay and then create a new uh list item just click on this create item select site
1:26:00
I have this maybe I will check it there so legacy appointments so this is that this is at least we are going to use select the list name
1:26:23
legacy appointments okay and then title we are going to use the output appointment ID
1:26:31
put the appointment title patient ID to patient ID and then gender selects and gender these are
1:26:40
the values is coming from this run a ui flow for a desktop so once everything is done just click save
1:26:53
Okay. Once it is saved, let me, we can test it by triggering that button. So I'll perform that trigger action. Just select this. I'll perform that trigger action and save and test
1:27:07
Just click on it. Okay, this enables us to check. First, it's connecting to that VA flow
1:27:17
It's connecting to that gateway. You can see this gateway I have used
1:27:24
And then the SharePoint. Then click on continue. Run flow. And then don't do anything in the system
1:27:36
So that this application gets automatically, it gets triggered, triggered it and it automatically runs its UI flow which you have created
1:27:45
So just wait for just a few seconds, the application gets open and then it will add details to the SharePoint list
1:27:55
We will wait for just a few seconds. so the same way we can just automate because currently this is a legacy application i want
1:28:10
to migrate some legacy content to the sharepoint so like the same way we can also add some
1:28:16
information to the legacy application using this or if you want to just capture some legacy
1:28:21
application information or the uh to maybe for preparing some report that also it it will be very
1:28:29
useful to that so it's triggered one time and it's catching this data so once it's captured it will
1:28:39
close the application and it will open the application one more time so instead of that
1:28:45
you can still you can just modify that uiflow actions to open always open the application and
1:28:52
then you have you can just do the changes or if you want to do some actions that that we can do
1:29:00
that we have to just modify it in the uiflow so it's just one time is completed so it's open
1:29:09
and capture that information and closes it so it it go for another one loop so it open once again
1:29:23
you can see it's open once in you can in the you can see in the dash
1:29:27
box you can see that application gets open and now it's trying to focus to that application yeah it's
1:29:34
get focused. If you run this in unattended, so if you want to run for a million record
1:29:44
so the million that unattended session, if you if you run this in unattended
1:29:49
unattended session, definitely helpful because it's the million times it will automatically get so banned and then it's automatically close it
1:29:57
So once if you want don't want to close it, if you have to just modify it in the uiflow actions to not close that application
1:30:08
maybe we can create a two uh uh two two access to uiflow actions and the uiflow
1:30:16
so and then that is two recorder app uh that's it create two recorder app actions
1:30:23
and i gave flow that that will do it so it's added one more time so you can see 9 11
1:30:30
and then it gets it and then it gets the same save those items so we wait for one more time
1:30:45
so until it gets open let me Okay, it should get open, so I'm not focusing on anything
1:30:56
So because if you interact at all, whenever that UFOs and if we interact at all, if we
1:31:02
change anything and the actions it gets confused, the UFO gets confused, maybe this kind of
1:31:09
limitations gets solved in future. So you can see the another one 1210 11 12 9 10 9 11 9 2
1:31:20
The third time it's running. Once it captured and closed, I think everything gets completed
1:31:37
So if it for this for this demo I just stated as some sample application but if we
1:31:43
have the actual the production based legacy application definitely it will be very useful
1:31:49
to catch a number of data so can't they have this captured the three and three values but
1:31:54
if you want to catch a more information this is what definitely helps you all right so I think
1:32:01
is captured and then it's closed i think we'll go to the sharepoint site and we'll see uh the
1:32:09
two items get saved here just refresh this okay maybe the third one gets still gets running
1:32:19
wait for the second okay let me click on this done you see the uef flow runs successfully and you can see this the three times is done okay one
1:32:44
two eleven since created in a sharepoint come and then i have just go to three you can see this
1:32:51
also is created in a sharepoint list you can see that's it so so by the way instead of click on
1:32:59
that insert button we can also trigger trigger through sending the email or just messaging
1:33:04
via thing or if you have some other automation actions or some other automation triggers you can use that to just trigger this via flow and complete this automation so i just
1:33:27
let me share my our point so uh this gets done so any questions
1:34:06
Moving on to next slide. This is closing note, so thank you for now
1:34:17
OK, Sally close it or the. Yeah, yeah, if you don't have anything further
1:34:24
OK, OK, so yeah, thank you. Thank you for watching this session
1:34:30
and I hope we'll share this video. Uh, later. And then, uh, just if you want to learn more
1:34:40
information on robotic process automation with, uh, by Microsoft Thank you
1:36:17
Thank you
#Music Videos
#Online Video


