cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Does anyone have an idea on how to extract a site's url from Get File Properties?

I am trying to find a way to get a site's url in my Flow as a variable.  I am not quite figuring out the formula to do this.  I saw some posts about using substring expression to subtract Link to an item - full path but cant seem to get it working.  Below is what i have but it gives me an error that the syntax is not correct.

 

substring(outputs('Get_file_properties')?['body/{Link}'],0,length(outputs('Get_file_properties')?['body/{Link}']))-length(outputs('Get_file_properties')?['body/{FullPath}'])-1)

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Does anyone have an idea on how to extract a site's url from Get File Properties?

@skarthanal 

Take a look at my example below - my solution provides the URL up to and including the library

My first compose action references the Link to item property from Dynamic content.

image.png

image.png

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Does anyone have an idea on how to extract a site's url from Get File Properties?

@skarthanal 

Take a look at my example below - my solution provides the URL up to and including the library

My first compose action references the Link to item property from Dynamic content.

image.png

image.png

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Highlighted
Frequent Visitor

Re: Does anyone have an idea on how to extract a site's url from Get File Properties?

@ScottShearer Thank you!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,086)