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 / Get URL from where I c...
Power Apps
Answered

Get URL from where I clicked new element PowerApps Custom Sharepoint form

(0) ShareShare
ReportReport
Posted on by

Hi! 

I'm trying to get the URL from where I clicked "New Element" on a custom Sharepoint Form. 

Is it possible?

Screenshot shows the formula I'm trying. 

lorodo_0-1711097813298.png

Cheers!

Categories:
I have the same question (0)
  • RogierE Profile Picture
    879 Moderator on at

    You could use a value and save a URL to it in the OnSelect of your controls: Set(varClickedURL,"www.someurl.com")

    But a separate control does not have a specific URL I guess. 

    For what purpose would you want to have/show this URL? 

     

    Please like the reply and/or accept it as the solution if the answer is what you were looking for.

  • lorodo Profile Picture
    on at

    Hi!

     

    Thanx for your response, I think I explained myself poorly.

     

    My problem is that I have a Sharepoint list with folders. 

     

    When I create Folders I only need to give it the name of it and it created the ID autmatically. 

    lorodo_1-1711351414327.png

     

     

    I created a PowerApps Custom Form to create elements in that same list, which, when clicking inside one of those folders, creates the element with the ID for the new element in the folder I'm in. 

    lorodo_2-1711351443997.png

     

    One of the columns in the list depends on which folder you have created the element (receptor column).

     

    Captura de pantalla 2024-03-25 082444.png

    I need to, when clicking new element, get the ID param of URL, so I can auto fill the first column of the element.

    Is it possible?

     

    Thnx in advance. 

    Cheers!

  • RogierE Profile Picture
    879 Moderator on at

    Ah, okay, I'm starting to understand what you are aiming at. I've sort of built a copy of your App, if I understand correctly. As you've used PowerApps to change your form, your App will show SharePointIntegration at the highest level, correct? 

    If so, have you tried adding the field 'Folder Path' to your form? 

    RogierE_0-1711553824648.png

     

    Please like the reply AND accept it as the solution if the answer is what you were looking for.
    (to help me grow in community rank AND help others find the solution)

  • lorodo Profile Picture
    on at

    Hi!

    This is exactly what I need, but, no info is shown, when opening the form.

    Attatched there is The same screenshots you provided, but in mi form. Can you see something wrong?

    lorodo_0-1711955406116.png

    lorodo_1-1711955442227.png

    Cheers!

     

  • lorodo Profile Picture
    on at

    Your solution works when editing one element, but not when creating the new element, which is my objective. 

    Is possible, to do the same approach, but in creation?

    Thnx in advance!

  • Verified answer
    RogierE Profile Picture
    879 Moderator on at

    When you are in the process of creating, there is no record created yet, so no {FullPath} either. 
    what you could do is add a sort of ‘autosave’ function by adding an invisible timer and adding a SubmitForm and a Refresh to the OnTimerEnd maybe? 

    Please LIKE the reply and ACCEPT it as the solution if the answer is what you were looking for.
    (to help me grow in community rank and help others find the solution)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard