Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Verified answer
    RogierE Profile Picture
    862 Super User 2025 Season 1 on at
    Re: Get URL from where I clicked new element PowerApps Custom Sharepoint form

    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)

  • lorodo Profile Picture
    on at
    Re: Get URL from where I clicked new element PowerApps Custom Sharepoint form

    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!

  • lorodo Profile Picture
    on at
    Re: Get URL from where I clicked new element PowerApps Custom Sharepoint form

    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!

     

  • RogierE Profile Picture
    862 Super User 2025 Season 1 on at
    Re: Get URL from where I clicked new element PowerApps Custom Sharepoint form

    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
    Re: Get URL from where I clicked new element PowerApps Custom Sharepoint form

    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
    862 Super User 2025 Season 1 on at
    Re: Get URL from where I clicked new element PowerApps Custom Sharepoint form

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard