Dineshm
(Dinesh Kumar M)
March 1, 2019, 6:41am
1
My query is as follows
When I login to my application I will get security code (like OTP) to my email address which is a dynamic value
I need to copy the security code from specific subject of the email
Paste the code in the application login page
Example
Dear ABC,
Your one-time security code for the CX-app is: 6SMJRD.
I need to capture the dynamic value after the CX-app is: word in that line. Which is 6SMJRD
As of now I can able to get outlook email but don’t know how to copy the code from specific subject of the email and paste it in the application.
anil5
(Anil Kumar Bandam)
March 1, 2019, 6:50am
2
Hi,
You can use regular expression to get the code
(?<=CX-app(.+): )[\w\d]{6}
anil5
(Anil Kumar Bandam)
March 1, 2019, 7:03am
3
Hi,
Refer the below workflow, just send a mail to yourself with the above Example message
and run this workflow.
Main (2) (1) (5).xaml (8.8 KB)
1 Like
Dineshm
(Dinesh Kumar M)
March 1, 2019, 8:51am
4
Hi,
Thanks! but unfortunately I got a challenge here is, after it copy the code I need to go back to the login window to paste the code which is already active in the browser. How to navigate back to the browser again?
anil5
(Anil Kumar Bandam)
March 1, 2019, 9:25am
5
if the screen where you have to provide the code is already open,Use Attach browser and use typeinto.
2 Likes
Dineshm
(Dinesh Kumar M)
March 1, 2019, 10:50am
6
Thanks a lot Anil
It works now as I expected. Bot opened the specified URL & entered username and password in the login page, then the security code has been copied from the outlook and pasted in the login page again.
Thanks,
Dinesh Kumar. M
system
(system)
Closed
March 4, 2019, 10:50am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.