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 / Form not recognising s...
Power Apps
Unanswered

Form not recognising selected item from pre-existing ticket when opened via URL

(0) ShareShare
ReportReport
Posted on by 7

I am having difficulty with a form recognising a selected value when opening a pre-existing ticket via URL.

I am not having this issue with the ticket ID via "CurrentItemID" which is due to my App OnStart statement - If(IsBlank(Param("ItemID")),Set(CurrentItemID, Blank()),Set(CurrentItemID, Param("ItemID")))

 

I tried to duplicate that statement for the city name (below) but had no luck, when opening a pre-existing ticket my label with "CurrentCityName" is blank.

If(IsBlank(Param("cityName")),Set(CurrentCityName, Blank()),Set(CurrentCityName, Param("cityName")))

 

Am I misunderstanding Param? Any help would be greatly appreciated.

Cheers

 

Categories:
  • WarrenBelz Profile Picture
    156,538 Most Valuable Professional on at

    Hi @e9d,

    Assuming your CurrentItemID is Numeric, you need this

    If(
     !IsBlank(Param("ItemID")),
     Set(
     CurrentItemID, 
     Value(Param("ItemID"))
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • e9d Profile Picture
    7 on at

    Thanks @WarrenBelz for the quick response but the CurrentItemID which is numeric is the one that is working fine. The CurrentCityName is not recognised when I open a pre-existing ticket via a URL, I have a text label that equals CurrentCityName and it's blank rather than recognising the city selected in the form.

  • WarrenBelz Profile Picture
    156,538 Most Valuable Professional on at

    Hi @e9d ,'

    Firstly this code (you don't need the blank() setting - the Variable will be blank by default if you do not set it)

    If(
     !IsBlank(Param("cityName")),
     Set(
     CurrentCityName, 
     Param("cityName")
     )
    )

    will set the Variable CurrentCityName to the Parameter cityName providing it is properly sent in the URL. What is the format of the URL (please send one and copy it from the browser address).

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • WarrenBelz Profile Picture
    156,538 Most Valuable Professional on at

    Hi @e9d ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard