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:
I have created a Power App form as shown below:
On Click of the Submit button, I have my On Select set to
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
Solved! Go to Solution.
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.
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.
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
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.
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.