Hi folks, Super simple one to start your day/evening and get some kudos.
Sadly, I've been stuck on it for hours and I'm starting to get the PA Sweats.
Basically I'm trying create a variable containing a url string from form a DataCardValue that has a link.
Super simple right!
Note: I'm trying to initialize the variable when the screen opens (OnStart), outside of the form environment.
I started with this..
Set(varPdfLink, Text(DataCardValue.HtmlText))
But this gives me the HTML tags as well. (I only want the url)
<a href='https://mysite.pdf'>https://mysite.pdf</a>
I've since tried a number of ways to split the string to just get the url.
I've come from a Power Automate workflow where this would be something simple like...
Split(Text(DataCardValue.HtmlText), "'")[1]
But indexing doesn't work and I just can't seem to understand how to approach this.
Should it be a ClearCollect or a Set function, for starters.
I've seen methods using Mid(), First(LastN()) but the variable always resolves to blank.
I'm not sure if it's correct and I'm just missing something because I have to load the page in runtime to get the variable set from the DataCardValue.
Any Help would be appreciated. Thanks!