cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jspeer1
Helper II
Helper II

Extract Link from Email Body

Hello,

 

I am currently getting into Desktop Flows and I am wondering if its possible to extract and open a link from an email body, being receiving the email the main trigger.

 

What happens is my Desktop Flow calls for a PowerShell script to run which requires two variables: username and host name (asset)

 

The username I can extract as it comes in the body of the email in plain text. 

 

The computer name however does not come in plain text. What there is is a link in the email body that takes you directly to the Web page of the ticket. In the ticket there's a field called "configuration item" which is filled out with the computer name. This is why I need the flow to somehow open the link, scan the page for "configuration item" and store whatever is in there as a variable

 

 

My end goal is to automate adding users as local administrators when they submit a request. My PS script just asks for 2 inputs: username and machine name. 

 

Thanks in advance 

1 REPLY 1
Serbay
Resolver I
Resolver I

Hi,
Extraction email body by using expressions and functions are quite possible. In your case, it should be possible to extract the link from the body and trigger Recorder from that output. 
Just to give some idea, https://powerusers.microsoft.com/t5/Building-Flows/Read-content-from-a-link-in-a-the-body-of-an-emai...

To capture and store data from the web, please check this example ;

https://www.youtube.com/watch?v=DBT_-T9WXWE&t=4s&ab_channel=RezaDorrani 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,895)