cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AkshayManke
Responsive Resident
Responsive Resident

Deep Linking with Multiple Scrrens

Hi,

I am not much familiar with Param function hence asking this question.

 

I have created an app where i have added deep linking with the below code in the OnStart Property of the App.

 

Set(VarIdeaID,Value(Param("IDEA")));If(VarIdeaID<>0,Set(VarIntake,LookUp('ListName',ID=VarIdeaID));Navigate(DetailsWithApproval))

 

And embedded the below code in the deep link which is working perfectly fine.

 

<a href='https://apps.powerapps.com/play/id and Tenent ID + &IDEA=" & Item.ID & "'> Link </a>"

 

I don't have any issue with the above code so far.

Now i want one more deep link which will redirect to a different form than 'DetailsWithApproval'. So was thinking to create a new app. I i am sure that there must be a way using which i can create multiple deep links and i can navigate to the different screens using the link.

Can anyone please help that how to do add multiple deep links within same application?

2 ACCEPTED SOLUTIONS

Accepted Solutions

Hi @AkshayManke ,

Firstly, the OnStart looks right (it sets the ID and navigates to a screen depending on the second parameter

Set(
   VarIdeaID,
   Value(Param("IDEA"))
);
If(
   VarIdeaID <> 0,
   Set(
      VarIntake,
      LookUp(
         'ListName',
         ID = VarIdeaID
      )
   )
);
If(
   Param("Screen") = "Apr",
   Navigate(DetailsWithApproval),
   Param("Screen") = "Update",
   Navigate(I_Update)
)

but your link needs to look like this

<a href='https://apps.powerapps.com/play/<ID>&IDEA=" & VarIntake.ID & "&Screen=Update'> Link </a>

 

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.

 

View solution in original post

Hello @WarrenBelz,

 

finally i came across the below code in the OnStart of the App.

Set(
    VarIdeaID,
    Value(Param("IDEA"))
);
If(
    VarIdeaID <> 0,
    Set(
        VarIntake,
        LookUp(
            'ListName',
            ID = VarIdeaID
        )
    );
    Navigate(DetailsWithApproval)
)

I created multiple parameters like the above and added them in to the links separately. It is working fine now and i am getting the expected results. 

 

Many Thanks for your help and guidance. 

 

Regards,

Akshay

View solution in original post

6 REPLIES 6
WarrenBelz
Super User III
Super User III

Hi @AkshayManke ,

You can easily send multiple parameters by adding them in you Launch string separated by & signs. Just give the second parameter a different name and apply the same logic as you have for the other parameter/s on the App.OnStart

<a href='https://apps.powerapps.com/play/id and Tenent ID + &IDEA=" & Item.ID & "&Param2=" & YourParam2 & "'> Link </a>"
 

 

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.

 

 

Hello @WarrenBelz,

 

Many thanks for suggesting the solution. I was trying to create the another link but somehow i am not able to do that and ending up with confusion. I would be glad if you can share the detailed steps that what should i add in the App-OnStart Property and in the Link.

 

As i this will be all together a different screen so i will just need the user to be redirected to the one.

 

Many Thanks,

Akshay 

Hi @AkshayManke ,

Using your syntax and Param2 as the Parameter - I do not know what you are trying to achieve with this, but one structure would be something like this.

Set(
   VarIdeaID,
   Value(Param("IDEA"))
);
Set(
   VarParam2,
   Param("Param2")
);
If(
   !IsBlank(VarParam2),
   Navigate(Param2Screen),
   If(
      VarIdeaID<>0,
      Set(
         VarIntake,
         LookUp(
            'ListName',
             ID=VarIdeaID
         )
      );
      Navigate(DetailsWithApproval
   )
)

 

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.

 

Hello Warren @WarrenBelz,

 

Thanks for helping with the code with more details. However i am still not clear about the variables you added in the code. Best i am giving my requirement as below, so that you can help me with the exact code.

 

1. The App has two screen (DetailsWithApproval & I_Submit - In future there will be more screens ) which are having forms added in it.

2. To Navigate to the Form I have created Created List Screens where added Gallery. ThisItem (Button) is added in 'VarIntake' using below

 

Set(VarIntake, ThisItem); Navigate(DetailsWithApproval)

 

similarly in the other list screen the button is coded with below

 

Set(VarIntake, ThisItem); Navigate(I_Submit)

 

3. In short, ThisItem is added in VarIdea.

 

I tried steps from this link: https://www.c-sharpcorner.com/article/redirect-users-to-specific-screen-of-powerapps-from-email-noti...

Referred the Shane's Video: https://www.youtube.com/watch?v=A5Pi5P2YKds

Referred April's Video as well: https://www.youtube.com/watch?v=EZyxlYtzqTQ

 

Just before getting your recent email i was trying the below.

App-OnStart

 

Set(
    VarIdeaID,
    Value(Param("IDEA"))
);
If(
    VarIdeaID <> 0,
    Set(
        VarIntake,
        LookUp(
            'ListName',
            ID = VarIdeaID
        )
    )
);
If(
    Param("Screen") = "Apr",
    Navigate(DetailsWithApproval),
    Param("Screen") = "Update",
    Navigate(I_Update)
)

 

 

 

and was trying to add the below in the link:

 

<a href='https://apps.powerapps.com/play/<ID>&IDEA=Screen=Apr" & VarIntake.ID & "'> Link </a>

 

&

 

<a href='https://apps.powerapps.com/play/<ID>&IDEA=Screen=Update" & VarIntake.ID & "'> Link </a>

 

 

The good part is, i am landing to the correct screen but the ID is not getting recognized and i am getting a blank form. I think i am doing some mistake. Will appreciate if you can help me where i am going wrong and what should be the codes.

 

Thanks,

Akshay

 

Hi @AkshayManke ,

Firstly, the OnStart looks right (it sets the ID and navigates to a screen depending on the second parameter

Set(
   VarIdeaID,
   Value(Param("IDEA"))
);
If(
   VarIdeaID <> 0,
   Set(
      VarIntake,
      LookUp(
         'ListName',
         ID = VarIdeaID
      )
   )
);
If(
   Param("Screen") = "Apr",
   Navigate(DetailsWithApproval),
   Param("Screen") = "Update",
   Navigate(I_Update)
)

but your link needs to look like this

<a href='https://apps.powerapps.com/play/<ID>&IDEA=" & VarIntake.ID & "&Screen=Update'> Link </a>

 

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.

 

View solution in original post

Hello @WarrenBelz,

 

finally i came across the below code in the OnStart of the App.

Set(
    VarIdeaID,
    Value(Param("IDEA"))
);
If(
    VarIdeaID <> 0,
    Set(
        VarIntake,
        LookUp(
            'ListName',
            ID = VarIdeaID
        )
    );
    Navigate(DetailsWithApproval)
)

I created multiple parameters like the above and added them in to the links separately. It is working fine now and i am getting the expected results. 

 

Many Thanks for your help and guidance. 

 

Regards,

Akshay

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (40,044)