Notifications
Announcements
Left(myTextBox.Text, Find("/Forms", myTextBox.Text)-1)
If( //Checking if its a Doc Lib link !IsBlank( Find( "Forms", TextInputCanvas1.Value ) ), //First removing everyting after /Forms in the link Left( Left( TextInputCanvas1.Value, Find( "/Forms", TextInputCanvas1.Value ) - 1 ), //findind the last / char before the document library name and using it to get the all the text before it With( { _link: Left( TextInputCanvas1.Value, Find( "/Forms", TextInputCanvas1.Value ) - 1 ), _lookingFor: "/" }, If( EndsWith( _link, _lookingFor ), Len(_link), Find( _lookingFor & Last( Split( _link, _lookingFor ) ).Value, _link ) ) ) ), //Plain Link if its a direct link to a site or subsite TextInputCanvas1.Value )
Left( myTextBox.Text, Find( "|", Substitute(myTextBox.Text, "/", "|", Len(myTextBox.Text) - Len(Substitute(myTextBox.Text, "/", ""))) ) )
Set(SiteList, Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/sites?$select=webUrl&search=*","GET","").value); Set(Sites, SortByColumns(ForAll(SiteList,{WebUrl: Text(ThisRecord.webUrl),Length: Len(ThisRecord.webUrl)}),"Length",SortOrder.Descending)); Set(MapSite, LookUp(Sites, !IsBlank(Find(WebUrl,myTextBox.Text))))
With( {splitUrl: Split(Left(myTextBox.Text, Find("/Forms", myTextBox.Text)-1), "/")}, Concat(FirstN(splitUrl, CountRows(splitUrl)-1), Value, "/") )
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268