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 / How defined Param ()Hi...
Power Apps
Unanswered

How defined Param ()Hi everyone, I have an expense application. I defined a parameter that is the ID of each expense created:

(0) ShareShare
ReportReport
Posted on by 68

Hi everyone,

 I have an expense application. I defined a parameter that is the ID of each expense created:asdasd.pngaaa.png

 

When I use it, https://apps.powerapps.com/play/ + ID Apllication + PARAMETER (ID = xx) does not work correctly

 

XX = My ID expensive.

 

How can I fix this?

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @iagosalvadori ,

    One thing I can see wrong immediately is your test

    If(VarID=0)

    this is testing for the parameter to not be there - you need

    If(VarID>0)

    if you want the Lookup to work.

     

    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.

     

  • iagosalvadori Profile Picture
    68 on at

    Hi @WarrenBelz 

     

    I have added this formula in the App-->On start property:

    aaaa.png

    In the "My Expensive" (gallery page) I have added the formula Onselect:

    Set(VarRecord;ThisItem);;Navigate(DetalheDespesa)

     

    Until now my link send my directly to the gallery page, but it doesn't forward me directly to the ticket ID:

    xxx.png

  • v-siky-msft Profile Picture
    on at

    Hi @iagosalvadori ,

     

    Could you share your Deeplink URL? What you post above doesn't look right.

    The URL should be like this:

    https://web.powerapps.com/apps/7caeaf77-6dd9-df61-053a-7b3c5b3d3bc8?machineId=1

     

    https://web.powerapps.com/apps/<AppID >? Parameter = Value

     

    Hope this helps.

    Sik

  • iagosalvadori Profile Picture
    68 on at

    Hi @v-siky-msft ,

     

    I know, and I already tested:

     

    https://web.powerapps.com/apps/<AppID>? Parameter = Value

     

    Parameter = DespID
    Value = any ID

     

    But doesn´t work, the application consider ID always 0, i don´t know what is wrong

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    @iagosalvadori ,

    I am not sure what you are asking - we did not change your gallery and it should not be affected and certainly not by the code change at App OnStart (I assume this is where you code is).

    You have set a record as a Variable - can you please consider this approach. At App OnStart

    Set(
     VarlD;
     Value(Param("DespID"))
    );;
    If(
     VarlD>0; 
     Navigate(MinhasDespesas)
    )

    On your Gallery OnSelect

    Set(VarID,ThisItem.ID);;
    Navigate(MinhasDespesas)

    On the Item of your Form

    LookUp(
     Despesas.ID; //why is this not Despesas without the ID?
     ID=VarlD
    )

    Then you actually have the record retrieved from the data source. - note the comment above as well (I was using your code)

     

    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.

     

     

  • iagosalvadori Profile Picture
    68 on at

    Hi @WarrenBelz,

     

    It still didn't work.

     

    I don't know if I made myself understood, I need to send a link through a flow to the approvers where I go directly to the expense.

     

    OnStart

    zzzzzz.png

    On my Gallery OnSelect:

    AAAAA.png

    On the Item Form:

    BBBB.png

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Thanks @iagosalvadori ,

    Is the issue the link?

    "https://apps.powerapps.com/play/xxxxxxxx-...-xxxxxxxxxxxx?tenantId=xxxxxxxx-...-xxxxxxxxxxxx&DespID="&'My ID expensive'

    the value at the end just needs to be the reference 'My ID expensive' (taken off your code) that generates the ID for you. This is quite a simple process and will work on the code I provided as long as you send the ID as above.

     

    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.

     

     

  • v-siky-msft Profile Picture
    on at

    Hi @iagosalvadori ,

     

    Your logic doesn't make any sense.

    1. you first save the parameter to variable VarID, and Navigate to Gallery Screen.

    Why don't you navigate to the Form Screen directly?

    2. in Gallery.OnSelect property, you also save the selected item(which is a record) to VarID, and navigate to Form Screen.

    Why do you save the selected item to VarID? I believe there should be a Incompatible type error.

     

    Hence,

    1.  suggest you navigate to Form Screen directly generally.

    2.  modify the Gallery.OnSelect property as follows to get around incompatible error.

    Set(VarID;ThisItem.ID);;Navigate(FormScreen)

    Hope this helps.

    Sik

     

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    @iagosalvadori ,

    I am as lost as @v-siky-msft here and am trying to work out exactly what the issue is other than "it does not work".

    Please tag whoever you want to respond here as three-way conversations just confuse everyone.

    When you do, can your please include what testing you have done and what it is you are wanting to see that is not there and in particular what is 'My ID expensive' 

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard