web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / From Excel Column URL ...
Power Automate
Answered

From Excel Column URL to opening sites

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi - I am trying to open /click rows in an excel with URL link. I need to extract that data once the URL is open pasting it back to to the corresponding row. Anyone has done something similar?

  • Verified answer
    fraenK Profile Picture
    2,125 on at

    You need to open Excel with your file, read its content, oprn a browser, loop through each row?, open the cell value as URL in a browser, extract your data and write it back to Excel to a named or numbered cell

    https://docs.microsoft.com/en-us/power-automate/desktop-flows/variable-data-types#advanced-data-types

    https://docs.microsoft.com/en-us/power-automate/desktop-flows/automation-web

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey, is there any more possible information on how to solve this. I have read through links provided by fraenK and I am still struggling to complete the same job as Anons post. Working through a list of URLs within excel, extracting info from selected URL and writing data onto the next column (Looping through each row intillfinish). Any simple guided templates would be greatly appreciated.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Assuming you are doing this in chrome:

     

    • Open Excel
    • Get Last Row
    • Get Exceldata (to last row)
    • For Each %CurrentItem% in ExcelData #Current Item = Row in this case
      • Read %URL%
        • If %CurrentItem.Index% (or .Row - not sure) = 1, Launch Chrome to %URL%
        • Else
          • Focus Chrome Window
          • Send Keys {Control}(l) #that's a lowercase L - this will take you to the address bar
          • Send Keys %URL%{Enter}
        • EndIF
      • Do your tasks to find your info
      • Write to Excel
    • End #For Each

    Best of luck!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much! I'll make sure to update you when I have it working

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    An Error is thrown on action 9 (Focus window) Window instance must be an integer value? 

    InkedLink Scrape TEMPLATE_LI.jpg

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Anonymous 

     

    Here is working example of desktop flow.

     

    Excel.LaunchAndOpen Path: $'''C:\\Users\\User01\\Documents\\Open URL to Get Infor from Web.xlsx''' Visible: True ReadOnly: False LoadAddInsAndMacros: False Instance=> ExcelInstance
    Excel.ReadAllCells Instance: ExcelInstance ReadAsText: False FirstLineIsHeader: True RangeValue=> ExcelData
    SET RowIndex TO 2
    LOOP FOREACH CurrentItem IN ExcelData
     WebAutomation.LaunchEdge Url: CurrentItem['URL'] WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False Timeout: 60 BrowserInstance=> Browser
     WAIT 2
     WebAutomation.DataExtraction.GetDetailsOfElement BrowserInstance: Browser Control: appmask['Web Page \'h ... nd-august/\'']['Author and Publish Date'] AttributeName: $'''Own Text''' AttributeValue=> AttributeValue
     WebAutomation.CloseWebBrowser BrowserInstance: Browser
     Excel.WriteCell Instance: ExcelInstance Value: AttributeValue Column: 3 Row: RowIndex
     Variables.IncreaseVariable Value: RowIndex IncrementValue: 1 IncreasedValue=> RowIndex
    END
    Excel.CloseAndSave Instance: ExcelInstance

     

    shindomo_0-1632310085882.png

     

    shindomo_1-1632310121373.png

     

    Thank you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Fantastic!  Works perfectly Thank you!

  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    Could be even faster if you move the "Launch new Microsoft edge" up before the for each
    The use "Go to webpage"  inside the "For each" loop
    Then when the loop finish, close the web browser.

    In that way you don't have to start and close the web browser all the time.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Highboy 

     

    You are right. Thanks for your advice. 😊

  • Powerlearnerd Profile Picture
    20 on at

    @Highboy  do you know how can I complete this flow by using extracting data from webpage instead of get details of element on web page

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard