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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Multiple condition in ...
Power Apps
Answered

Multiple condition in DeepLinking

(0) ShareShare
ReportReport
Posted on by 295

Hi, 

 

Please help me with the below issue. 

 

I do have a Canvas form, with the data base in SP. 

Its purpose is to submit items that need to pass thourgh an approval flow. 

One of the forms needs to open the coresponding SP Item, therfoe I need to find out the correct link to send. 

 

I have inserted the below formula on StartScreen for App : 

Carmen15_0-1679552897028.png

 

To find out the correct link that is opening the EditBB form : 

 https://apps.powerapps.com/play/e/default-.......?tenantId&screenname=BB - this is opening the corect form ( EditBB form) 

 

Now, to insert also the coresponding SP Item I tried to insert one more one condition into the URL like : 

  https://apps.powerapps.com/play/e/default............?tenantId&screenname=BB&ID=130

 

But something is not oki because, the second link is redirecting to the Home form instead of EdirBB & coresponding SP Item. 

 

Do you help me to insert both conditions (open EditBB & open the coresponding ID item from SP) into the URL link and to make the link to work fine ? 

 

Thank you ! 

Carmen 

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Carmen15 ,

     

    You can set a variable OnStart of App to store the ID:

    vjefferni_0-1679558249315.png

    Set(varid,Value(Param("ID")))

     

    then Item of forms will be:

    LookUp(YourList, ID = varid)

     

    I tested the URL ends with parameters like below:

    https://apps.powerapps.com/play/e/...?tenantId=...?ID=aa&screenname=bb

     

    Best regards,

  • Carmen15 Profile Picture
    295 on at

    @v-jefferni 

    Thank you for replying me! 🙂 

     

    To check if I understood correctley your advise. 

    On App , OnStart I should insert the initial formula plus the one indicated by you?

    Carmen15_2-1679559825999.png

     

    If I am doing this, after inserting the formula in Items form it is giving me error.

     There is already another condition; is this influencing, or what? 

     

    Carmen15_0-1679559554840.png

     

    Carmen15_1-1679559731805.png

     

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Carmen15 ,

     

    Firstly, set variable is in OnStart property rather than StartScreen. Secondly, since the forms will also accept the selected item from the Gallery, you need to modify OnSelect of the Gallery from

    Select(Parent)

    to:

    Set(varid, ThisItem.ID)

     

    then Item of all the forms will not need Gallery.Selected at all, just use the LookUp formula is enough.

     

    Best regards,

  • Carmen15 Profile Picture
    295 on at

    @v-jefferni I've done everything as you said; the Apps do not give me errors anymore,I've succesfully published; but when testing, the screen opened is displaying another idea than the one I've selected ( ID=230) and also it is giving me an unkown error (see below the print screen)

     

    I am using the WEB Link + ID=230&screenname=BB

     

    Carmen15_1-1679563127089.png

     

     

    Carmen15_0-1679563018371.png

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Carmen15 ,

     

    You can add a Label on each screen and show the ID, checking if the App got the ID your passed from URL. 

    vjefferni_0-1679563465486.png

     

    Besides, please check if there are other formulas in OnVisible of the two screens. You can also turn on the formula level error management in settings to see if the error message will be more specified.

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard