cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
arakesh04
Frequent Visitor

Deep linking not working in Power Apps

Deep linking not returning the specific record

I have a Sharepoint list which has all the question from a form. The columns are as follows:

arakesh04_0-1645661443195.png

 

 

I have created a Power App form as shown below:

arakesh04_1-1645661443201.png

 

 

On Click of the Submit button, I have my On Select set to

arakesh04_2-1645661443202.png

 

 

In the App settings, for Start Screen I have applied the following

If(!IsBlank(Param("ID")) , Screen1, Screen2)

In the App OnStart setting, the formula is as shown below:

If(

    !IsBlank(Param("ID")),

    Set(

        varItem,

        LookUp(

            'Ash - Demo',

            ID = Value(Param("ID"))

        )

    );

    Set(

        varFormMode,

        FormMode.Edit

    )

)

 

I copied the Web link for the Power apps form and included the following, but it still doesn’t retrieve the selected record.

<The URL link>&ID=51

1 ACCEPTED SOLUTION

Accepted Solutions
Digital
Super User
Super User

@arakesh04 ,

 

As Warren explained Microsoft recently changed the way OnStart works for performance reasons. This may be the reason why you're running into problems. The following article explains the rationale behind this change.

 

https://powerapps.microsoft.com/en-us/blog/app-startscreen-a-new-declarative-alternative-to-navigate...

 

You didn't mention if you are using the Navigate function in your OnStart, but just in case you are, there is a setting that can be turned on to enable this, although this isn't recommened. As Warren suggested, using a screen set as the StartScreen that displays a loader is a good strategy. Use a timer that navigates to your 'real' start screen once everything is loaded.

 

Screen Shot 2022-02-24 at 16.21.06.png

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @arakesh04 ,

Welcome to StartScreen . . . it executes before OnStart and therefore your record will not be set when you get there. The easiest way is to put the OnStart code on the OnVisible of your screens (there are other alternatives involving a "splash screen" with a timer to do the lot.

 

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.

Visit my blog Practical Power Apps

 

 

Digital
Super User
Super User

@arakesh04 ,

 

As Warren explained Microsoft recently changed the way OnStart works for performance reasons. This may be the reason why you're running into problems. The following article explains the rationale behind this change.

 

https://powerapps.microsoft.com/en-us/blog/app-startscreen-a-new-declarative-alternative-to-navigate...

 

You didn't mention if you are using the Navigate function in your OnStart, but just in case you are, there is a setting that can be turned on to enable this, although this isn't recommened. As Warren suggested, using a screen set as the StartScreen that displays a loader is a good strategy. Use a timer that navigates to your 'real' start screen once everything is loaded.

 

Screen Shot 2022-02-24 at 16.21.06.png

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,239)