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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamic Get Url From S...
Power Apps
Answered

Dynamic Get Url From Sharepoint Custom Form

(1) ShareShare
ReportReport
Posted on by 15

I have a sharepoint list and this list has 10 folders.

 

I want dynamic get the origin url in powerapps like this :

https://******.sharepoint.com/sites/SiteName/Lists/SystemMaintenance/AllItems.aspx?id=%2Fsites%2FSiteName%2FLists%2FSystemMaintenance%2FTestFolder%2FTestFolder2&viewid=217de08a%2D47eb%2D47e8%2Dbb6c%2D60467314b2c7

 

I want get the url that I can know which root user click "Add Item" button

 

Is anyone know how to get the url by powerapps?

 

Categories:
I have the same question (0)
  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Hey @ESi-tech,

     

    To get the Link to SharePoint Items you can use this Code. Just add the filter you need. 

    ClearCollect(colLink,ShowColumns(Documents,'Link to item'))

     

  • ESi-tech Profile Picture
    15 on at

    Hi @DBO_DV ,

    Thanks for your answer.

     

    I think that I didn't express my question clearly.

     

    I want to do is

    1. Get In Sharepoint List

    2. Click Add Button

    3. Click Save Button

    4. Save the Data at the root folder path

     

    The question is when I use powerapps that I need to know which root folder path that user clicked the save button, If I use the sharepoint intergration object, it can't be save the data at root folder (it'll be save at the top level), so I use powerautomate, but I don't know how to get the root folder path that user clicked the save button

    ESitech_0-1721025832849.png

     

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    So you would want to click on a Button in Power apps (New) You want to get the root folder. You can get it by doing the same Action. Just collect the Patch or Submit action and show the column Folder Path. You can then use a split with separator "/" and get the first value. 

     

    However if you want a power app to get triggered from a Save inside of the SharePoint list, that's not possible. only Power automate flows can get triggered automatically. 

     

  • ESi-tech Profile Picture
    15 on at

    I don't know how to use your action to get the path, I use the formula like this, but I think that it is my first data record path, not the actual path..

     

    ESitech_0-1721028377613.png

    ESitech_1-1721028394593.png

     

     

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Yes it is first, because you are using the frist function. This will always return the first record of a table. If you use Last it will give you the Last record of the Table

     

    Set(
     rootFolder,
     Last(colFolders).'{FullPath}'
    );

     

    If you use this code you get a table with one column that has all root folders: 

     

    Set(
     rootFolder,
     colFolders.'{FullPath}'
    );

    to get a specific record or a few you could use a filter (Returns all records matching the criteria) or a lookUp funtion (Returns first record matching the criteria)

     

     

  • ESi-tech Profile Picture
    15 on at

    I know I can get the record path, But I want to know if user click "New" Button how to get the root folder path that user is located in sharepoint list by powerapps, I need the path to save data at the rigth path

  • Verified answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    You can't get anything that is not saved. Power apps can't notify you when something is clicked directly in SharePoint. 

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard