Hi everyone,
I have an expense application. I defined a parameter that is the ID of each expense created:
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?
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.
Hi @WarrenBelz
I have added this formula in the App-->On start property:
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:
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
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
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.
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
On my Gallery OnSelect:
On the Item Form:
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.
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
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'
User | Count |
---|---|
195 | |
126 | |
91 | |
48 | |
44 |
User | Count |
---|---|
280 | |
163 | |
138 | |
81 | |
76 |