web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Deep linking through P...
Power Apps
Answered

Deep linking through Power Automate works but when you go directly to the app, it is blank

(0) ShareShare
ReportReport
Posted on by 492
Good day
 
I created this app in PowerApps and set up a flow in power automate to notify users when the request has been submitted.
 
The deep link takes you to your record which is fine but now if we go directly to the app the main page through the app link, it takes us to a blank record window, instead of the app landing page.
 
What did I do wrong or what am missing?
 
Onstart syntax: 
Set(varEmpID, Value(Param("EMPID")));
 
If(!IsBlank(varEmpID),EditForm(Form1_4));Set(varItem,LookUp(CREQE_Form,ID = varEmpID)); Navigate(Screen5);
 
If I remove Navigate (Screen5) then the app goes to the main page and so is the deep link from power automate email.
 
Please help. I am losing my mind. It's been a month trying to close off this project, but this is setting me back.
 
Thanks
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,127 Most Valuable Professional on at
    The piece of information missing is the location of Form1_4. I am assuming that it is on the landing page and that Screen5 is where you want to go if the incoming parameter is blank ? If so,
    If(
       !IsBlank(varEmpID),
       Set(
          varItem,
          LookUp(
             CREQE_Form,
             ID = varEmpID
          )
       );
      EditForm(Form1_4)​​​​​​​, Navigate(Screen5) );
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     
  • NN-21081740-0 Profile Picture
    492 on at
    Hi @WarrenBelz,
     
    Thanks for your response.
     
    Form1_4 is the form inside screen 5.
     
    Main page is screen 1
     
    Should I replace screen5 with screen1 or form1_4 with screen1 since both screen5 and form1_take mew to the same window?
  • Suggested answer
    LessCodePaths Profile Picture
    100 on at
    Hi,
     
    it is not recommended to use Navigate() function in App.OnStart property.
     
    Have you tried to utilize App.StartScren property?
    It is recommended approach.
    If(
        !IsBlank(Value(Param("EMPID"))),
        //go to screen Screen5 it there is param EMPID filled
        Screen5,
        //go to another screen by default
        DefaultScreen
    )
     
    L.
  • WarrenBelz Profile Picture
    153,127 Most Valuable Professional on at
    Yes - as per your original except you had an extra bracket.
    If(
       !IsBlank(varEmpID),
       Set(
          varItem,
          LookUp(
             CREQE_Form,
             ID = varEmpID
          )
       );
       EditForm(Form1_4);
       Navigate(Screen5)
    );
    ​​​​​​​The problem with StartScreen in your instance is that you cannot set the variable on it, so if you want to use that, you would need to set the Variable OnVisible of Screen5. So
    If(
       !IsBlank(Param("EMPID")),
       Screen5,
       Screen1
    )

    and then OnVisible of Screen5
    If(
       !IsBlank(Param("EMPID")),
       Set(
          varEmpID,
          Value(Param("EMPID"))
       );
       Set(
          varItem,
          LookUp(
             CREQE_Form,
             ID = varEmpID
          )
       )
    )
    


    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

  • NN-21081740-0 Profile Picture
    492 on at
    Hi @WarrenBelz
     
    You mentioned screen 5 for both syntaxes to add to the OnVisible properties.
     
    Which one is for screen 5(Form Screen) and which one is for screen 1(Main Screen).
     
    Thanks
  • Verified answer
    WarrenBelz Profile Picture
    153,127 Most Valuable Professional on at
    You do not need anything OnVisible of Screen1 as there is no parameter to be set if you land there.The second piece of code is for the StartScreen if you want to use it. Neither are necessary if you continue to use the OnStart code you currently have - just what I have in the first code. So you either do this OnStart
    If(
       !IsBlank(varEmpID),
       Set(
          varItem,
          LookUp(
             CREQE_Form,
             ID = varEmpID
          )
       );
       EditForm(Form1_4);
       Navigate(Screen5)
    );

    OR put this on the StartScreen code
    If(
       !IsBlank(Param("EMPID")),
       Screen5,
       Screen1
    )

    and this OnVisible of Screen5
    If(
       !IsBlank(Param("EMPID")),
       Set(
          varEmpID,
          Value(Param("EMPID"))
       );
       Set(
          varItem,
          LookUp(
             CREQE_Form,
             ID = varEmpID
          )
       )
    );
    EditForm(Form1_4);


    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee


  • NN-21081740-0 Profile Picture
    492 on at
    Hi @WarrenBelz
     
    The StartScreen code solved my issue without even adding the OnVisible code on screen 5. I just left the Onstart code as is, saved, published and voilà!!!
     
    Thank you for your patience and invaluable support!!!
     
    God Bless you, Sir
     
     
  • WarrenBelz Profile Picture
    153,127 Most Valuable Professional on at
    The reason I suggested you use the OnVisible code is that it is a better option sequentially than OnStart, which at some times fails to run before the screen transition. This makes sure that the Variable will be set as you enter that screen.
  • NN-21081740-0 Profile Picture
    492 on at
    @WarrenBelz,
     
    Noted. 
     
    Once again, thank you so very much!!
     
    Cheers.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard