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 / Custom Page Param via URL
Power Apps
Answered

Custom Page Param via URL

(1) ShareShare
ReportReport
Posted on by 41

I am trying to pass a param to a "Custom Page", via URL.

 

While this works with a Canvas App, it doesn't seem to work with Custom Page.

 

On App Start

Set(varparam, Param("testparam"));

 

Then URL

main.aspx?appid=xxxxxx&pagetype=custom&name=cns_custompagetest_c494c&testparam=test

 

I get the follow type of error

MKeppel_0-1648005338343.png

 

 

Is there a why to pass a param to a custom page via URL, if so what is the correct method, as the method which works for canvas apps does not seem to work for custom pages

 

 

----------------------

 

Found a solution..

 

within the custom page.

 

On start

 

Set(
  RecordItem,
  If(
    IsBlank(Param("recordId")),
    Blank(),
    LookUp(
      entity,
      recordid = GUID(Param("recordId"))
    )
  )
);

 

With URL of

main.aspx?appid=xxxxxx&pagetype=custom&name=cns_custompagetest_c494c&etn=ENTITYNAME&id=GUID

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @MKeppel :

    Glad to hear that you have solved this problem.

    Please consider marking your solution as a 'solution' to help others. Thank you.

    Best Regards,

    Bof

  • TobiwanK Profile Picture
    10 on at

    Hi @MKeppel & @v-bofeng-msft 

     

    Thanks for this post. it helped me half the way. Maybe you can help me with the other half.
    I would like call/open a custom page inside a model-driven app from an URL.
    But instead of passing a guid/id to the custom page, I need to pass a phonenumber via URL Parameter.
    Example: https://org..../main.aspx?appid=appid&pagetype=custom&name=custompagename&phonenumber=+41789996622

    I've tried many different things but failed. I can pass the "id" parameter, but it must be a guid. Otherwise I receive an error.
    If I use the URL above with the parameter "phonenumber" or "data", the custom page opens, but the "param()" function inside the custom app does not return a value.

    Any idea, how I get the phonenumber to the custom page?

     

    Kind regards

    Tobi

  • TarrasQ Profile Picture
    41 on at

    I haven't done much more testing, to see if it is possible to pass anything but a entity GUID. 

     

    If the phone number part of the record you are passing from. I would still pass the whole record using the GUID as per the original code then just retrieve it with

     

    RecordItem.phonnumber

     

     

  • Herbie22 Profile Picture
    3 on at

    Good, it is useful for me.

  • fitzpjam Profile Picture
    14 on at

    Have you happened to find a solution to pass the values other than the GUID? I can't find what the GUID would be for the item in my DataVerse table I am trying to pass the Title of from one page to another. 

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 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard