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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract data from webp...
Power Automate
Unanswered

Extract data from webpage table within IFRAMES using JS

(0) ShareShare
ReportReport
Posted on by 200

Hello Everyone,

 

I am new to PAD and JS. I am scraping information from multiple webpages with identical table layouts. The table is within an IFRAME and because of that when I use the "Extract Data from Webpage" action I can set the table up correctly but I cannot run the action because I receive the error "Export Data can't be found". I believe this is because the data is not on the webpage but instead in the IFRAME.

 

I can take the URL from the IFRAME and open that URL directly for each webpage by running through Client IDs.  My URL for the IFRAMEs is this: 

https://my.epitomax.net//epitomax/episode/AllForms.jsp?episode_id=%ClientID%&MAX_ROWS_OVERRIDE=FALSE&ALLFORM_DEFAULT_FORM_TYPE_FILTER='TREATMENT PLAN','PROGRESS NOTE','MISCELLANEOUS','DISCHARGE SUMMARY','ASSESSMENT'

 

When inspecting the table on each website I see they all have "div id = 'myGrid'". Is there a way to use JavaScript to extract all this table data into a data table on PAD? I need the code to work so that I can run through any webpage with the same generic URL and a new Client ID. 

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    A JS function will never return a table for you. It is always designed to return a string. You will then need to use various processing afterwards in native PAD actions to convert it to a table.

     

    If you can actually open the direct URL behind the iframe, I would suggest opening that web page and using Extract data from web page on it. If the structure of the tables is the same, you should be perfectly fine with it.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • apaulso9 Profile Picture
    200 on at

    Hello,

     

    Thanks for the update about JS. Is there a way to tell it to return the string of the values inside the element labeled "myGrid"? As for extracting from the URL behind the IFRAME is still returns the error "Data Extraction Element not found".

     

    Are there other ways you know of to remedy this problem?

  • apaulso9 Profile Picture
    200 on at

    My "Extract Data" action was running before all the data loaded. I added a "Wait" action and it started working again!

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You can also use a Wait for web page content action to wait for an element or text to appear. Then you will not need to have a hardcoded wait. It is usually more efficient this way.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard