cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

How to reference specific item in Powerapp

I have a Powerapp Form with a Gallery which gets populated from Sharepoint list. In screen 1 i have a gallery which lists all items in a list.Capture1.PNG

 

 

 

 

When i click on the arrow it brings me to another screen (display Form)

 

Now i want to do reference that specific item from the flow where users are directed to the display form of a specific item in a flow. How can we do that?

 

 

6 REPLIES 6
Highlighted
Continued Contributor
Continued Contributor

When you select the item in the gallery, you can then reference the selected item in the gallery like this: GalleryName.Selected

 

Does that solve the problem or are you looking for something different than that?

If this solved the problem for you, feel free to hit "Accept as Solution" so others can find the answer easier. 🙂

Kind regards,

Ben Fetters
Power Apps/Power Automate Developer
www.sovereignsp.com
Highlighted

I could do that in powerapp but i want to reference that display form from Flow so i need url that can reference that specific item.

Like this:

https://abc.sharepoint.com/abc_technology/Lists/Document%20Change%20Request/DispForm.aspx?ID=67

 

Can i do same in powerapps.

Highlighted

Hi @npokhrel123 

 

Could you please explain what is your requirement:-

Is it, from the flow in an email, there is a link that will open the specified document in powerapps display form?

 

 

 

 

Highlighted

I am trying refer to a item in powerapp Form using a url.  Cna we do that?

Highlighted

Hi @npokhrel123 ,

Could you please share a bit more about your scenario?

Do you want to open a specific item within your PowerApps form using a URL?

Further, which app do you created on your side? Do you create a standalone canvas app based on your SP list? Or custom a form using PowerApps in your SP list?

 

If you created a standalone canvas app based on your SP list, and want to open a specific form item via a URL, the user @Itsmesri and @Brice235i have faced same issue with you, please check my response within the following threads:

https://powerusers.microsoft.com/t5/General-Discussion/Lookup-always-going-to-first-item-for-list-de...

https://powerusers.microsoft.com/t5/General-Discussion/Open-PowerApp-to-display-a-specific-item-s-de...

On your side, you should configure your URL link as below:

https://web.powerapps.com/apps/955737dc-d53b-4eca-b71c-92c7ed067a29?ID=6

Or

https://web.powerapps.com/webplayer/iframeapp?source=iframe&appId=/providers/Microsoft.PowerApps/apps/955737dc-d53b-4eca-b71c-92c7ed067a29&ID=6

Note: The '955737dc-d53b-4eca-b71c-92c7ed067a29' represents the App Id of your canvas app.

Please check the following article for more details:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/embed-apps-dev#set-uri-parameters-for-y...

Within your canvas app, set the OnStart property of the App or OnVisible property of the first screen of your app to following:

If(
!IsBlank(Param("ID")),
Set(CurrentItem, LookUp('YourSPList',ID = Value(Param("ID"))));Navigate(DetailForm, None)
)

Set the Item property of the Display form control to following:

CurrentItem

 

 

If custom a form using PowerApps in your SP list, the user @bdc604 has faced same issue with you, please check the response within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Modern-SharePoint-links-to-View-Edit-New-Powe...

Please make sure that you have custom a form using PowerApps for your SP list, and then configure your URL as below:

https://abc.sharepoint.com/abc_technology/Lists/Document%20Change%20Request/DispForm.aspx?ID=67&pa=1&e=wzHGI1

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted

Thank You that works Now can i want to add If Condition where if Param ID is available in query string do :

 

First(Filter('Document Change Request',ID= Value(vid)))

 

Else Do

Gallery2.Selected

 

How do i do that i tried Nested If didnt work:

 

If(!IsBlank(Param("ID")),First(Filter('Document Change Request',ID= Value(vid))))
,If(IsBlank(Param("ID")),Gallery2.Selected)

 

what did do wrong here.

 

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,161)