Forum Discussion
How to extract table name from WEB import
- 4 years ago
The name of the table comes from a caption tag buried in the Web.BrowserContents text.
In this particular case, you can extract it like this:
let Source = Web.BrowserContents("https://www.belastingdienst.nl/wps/wcm/connect/nl/douane_voor_bedrijven/content/hulpmiddel-wisselkoersen"), TableName = Text.BetweenDelimiters(Source, "<caption>", "</caption>") in TableName
The name of the table comes from a caption tag buried in the Web.BrowserContents text.
In this particular case, you can extract it like this:
let
Source = Web.BrowserContents("https://www.belastingdienst.nl/wps/wcm/connect/nl/douane_voor_bedrijven/content/hulpmiddel-wisselkoersen"),
TableName = Text.BetweenDelimiters(Source, "<caption>", "</caption>")
in
TableName- Hansdecocq4 years agoFrequent Visitor
Thanks for this (quick) reply. The first thing I'll do tomorrow is try this 🙂
- Hansdecocq4 years agoFrequent Visitor
How do I reward you with Kudo's ????? ( This is new for me)
- AlexisOlson4 years agoSuper User
You can hit the Thumbs Up button on any message that deserves Kudos and click the Accept as Solution button for the message that resolved your question.
- Hansdecocq4 years agoFrequent Visitor
Hey Alexis
I couldn't wait (:)) to try it tomorrow, so I did it 2 minutes ago.- I created a new query with the data provided by you
- and...........Yep "TableName" has the (same) name like the main query.
(now I have to figure out the rest of the procedure, like extracting "month name and year". Thereafter I need to add two columns one with the constructed StartDateRates and the other with the EndDateRates.)
TOP!!!! Thank you for your help.