Skip to main content

Notifications

Community site session details

Community site session details

Session Id : OY2zf3yvYQxaDjujh/FEdT
Power Apps - Building Power Apps
Answered

How to find URL from where user clicked link to app?

Like (0) ShareShare
ReportReport
Posted on 3 Nov 2022 19:14:02 by 94

I'd like to be able to find the URL of the page that sent a person to my app. Seems like what I'm trying to do is access the Referer header so that I can pass the URL into my app as a variable and auto-populate one of the form fields. I can't seem to find information about how to get access to the Referer header from inside my app. 

 

Thanks for any help you can provide.

  • Verified answer
    JanChlebek Profile Picture
    9 on 09 Nov 2022 at 23:49:49
    Re: How to find URL from where user clicked link to app?

    Param() is the function you're looking for.

     

    Assuming Power App URL will look like:

    https://web.powerapps.com/apps/...?MyParam=Test

    Param("MyParam") will return 'Test' as a value

     

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-param

  • Clifferton Profile Picture
    94 on 09 Nov 2022 at 22:32:28
    Re: How to find URL from where user clicked link to app?

    Supposing I can have each url be parameterized at the source, how do I grab that parameter and put it into a variable in the Form?

  • Clifferton Profile Picture
    94 on 09 Nov 2022 at 16:26:31
    Re: How to find URL from where user clicked link to app?

    It's a publishing platform. We submit a template that acts as a frame around the content. Scanned books and other library content. I'll see if the publisher has a way to modify the link on each page, but I think that's going to be a non-option

  • Akser Profile Picture
    1,546 Super User 2025 Season 1 on 04 Nov 2022 at 18:56:22
    Re: How to find URL from where user clicked link to app?

    Hi @Clifferton,

     

    I'm assuming the apps has users from various departments / locations (?) and each have their own site (?) with a link to your app (?). Simply ask them to include a parameter in their links (&Referer=Marketing) and use that piece of info to auto-populate your fields maybe? (that's a looot of assumptions, sorry)

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,786 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started