cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
radiosonicfan
Kudo Kingpin
Kudo Kingpin

App.OnStart and StartScreen and Param; Getting your data message

Hello,
I have a deep linking email link I can send in my app. 

Trying to fix my app due to new the OnStart and StartScreen guidance. 

 

OnStart: Set(varProgID, Value(Param("ProgID")))
StartScreen: If(IsBlank(LookUp(CDLForm, ID = Value(Param("ProgID")))), BrowseScreen1, EditScreen1)

 

App Starts to correct screen and when link is clicked also goes to correct screen.

However, no data is loading. Getting a message. "Getting your data".

 

Any advice? Thank you. 

1 ACCEPTED SOLUTION

Accepted Solutions
radiosonicfan
Kudo Kingpin
Kudo Kingpin

This finally works for me. Yay. 

 

Onstart: Set(varProgID, Value(Param("ProgID")));

Set(varRecord, LookUp(CDLForm, ID= varProgID))

StartScreen: If(!IsBlank(Param("ProgID")),EditScreen1,BrowseScreen1)

View solution in original post

5 REPLIES 5
RandyHayes
Super User
Super User

@radiosonicfan 

This would be an issue with your form and the Item property of it.

I would suggest the following change:

OnStart:   Set(glbCurrentRecord, LookUp(CDLForm, ID=IfError(Value(Param("ProgID")), Blank())))

In your StartScreen: If(IsBlank(glbCurrentRecord.ID), BrowseScreen1, EditScreen1)

Then, make sure your Edit Form has glbCurrentRecord as the Item property.

 

If you are setting a variable from your Browse screen gallery selection, you can change the variable name I chose above to be that one instead.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Gave a try, but received a "Global Variables" not allowed on StartScreen.

radiosonicfan_0-1637601173570.png

 

 

Almost there. 
Onstart: Set(varProgID, Value(Param("ProgID")));
Set(varRecord, LookUp(CDLForm, ID= varProgID))

StartScreen: 
If(!IsBlank("ProgID"), EditScreen1,BrowseScreen1)

Deep Link Email Link works now with these formulaa.
Except app is opening to the EditScreen1 and not BrowseScreen1 on launch.

Closer. 

radiosonicfan
Kudo Kingpin
Kudo Kingpin

This finally works for me. Yay. 

 

Onstart: Set(varProgID, Value(Param("ProgID")));

Set(varRecord, LookUp(CDLForm, ID= varProgID))

StartScreen: If(!IsBlank(Param("ProgID")),EditScreen1,BrowseScreen1)

Harshavardhan22
Frequent Visitor

Try this if your data cards are view mode. I used this when my 'data cards' 'display mode' is view mode and it worked for me to load the data

 

1. StartScreen: If(Value(Param("ProgID"))<>0, BrowseScreen1, EditScreen1)

2. In the Data Card Value for each field, use Lookup function in "DefaultSelectedItems" as below:

    LookUp('CDLForm', ID = Value(Param("ProgID"))).Column_Name.

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,325)