cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tiksha
Helper II
Helper II

Deep linking url returning blank Fields

Hello Everyone,

I have created a form with Homeowner fields which is submitting the data and also sending a link of the same form in (View mode) via an email. Now I'm getting the blank fields, when first time I click to that link. Url is perfectly fine.

Also Refresh the datasource

Note :- Here I'm not using Form Control and using Excel one drive as data source.

I'm unable to understand, where I'm getting wrong.

 

The Code, I used onStart of App

 

If(!IsBlank(Param("HomeownerId"))&&(Param("Screen")="False"),Set(_assignEstimator, true);Set(HomeownerRecord,LookUp(HomeownerInfo_Sheet,HomeownerId=Param("HomeownerId"))));

 

 

 Also tried to set Default property of TextInput field

 

If(
    _editingHomeownerRequest||_assignEstimator,
    If(IsBlank(HomeownerRecord.Name) || IsEmpty(HomeownerRecord.Name),LookUp(HomeownerInfo_Sheet,HomeownerId=Param("HomeownerId"),Name),HomeownerRecord.Name),
    ""
)

 

The Url link I'm creating to send it Via Email:-

 

<a href="https://apps.powerapps.com/play/d0dde7ea-80f9-411d-83c6-bc4350af7e74?tenantId=4aca4708-bb1c-4d8b-922d-9c07957da90c?HomeownerId=@{triggerBody()['text']}&Screen=&@{triggerBody()['boolean_1']}">Click here</a>

 

The data gets load on refreshing page multiple times. But I want data must be visible immediately after clicking on  Hyperlink

Please help me figuring out the solution

Thanks in Advance 🙂

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Tiksha ,

The point here is that this is a deficiency of the StartScreen function (Variables set at App OnStart are not always set when you land on the screen). The other option is to set the variables at Screen OnVisible. You could also easily send that mail direct from Power Apps (Office365.SendEmailV2) without the Flow, but this is not your issue here.

 

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.

Visit my blog Practical Power Apps

 

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @Tiksha ,

You are sending the link in a Flow (you have referred to triggerbody) and did not include the Flow (so I cannot comment on that). You also can only have one ? in a URL - the second one should be &HomeownerId.

The other thing here that is important (which I think is your issue) is that if you are using StartScreen for your navigation, this will execute before OnStart and your Variable will not be immediately set (hence the need to refresh).

I have resorted to using a "Landing page" with Welcome etc with a button at the bottom in both text and action running both navigation and the Variable setting.

 

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.

Visit my blog Practical Power Apps

 

 

Tiksha
Helper II
Helper II

This is the code I'm using on StartScreen

If(!IsBlank(Param("HomeownerId"))&&(Param("Screen")="False"), HomeownerInformationScreen,Homescreen)

I didn't get which variables I need to refresh and where.

Here is the flow. The Url I'm passing via mail

Tiksha_0-1654682382946.png

If DataSource, Then I even refreshed it on OnStart Screen

 

Hi @Tiksha ,

The point here is that this is a deficiency of the StartScreen function (Variables set at App OnStart are not always set when you land on the screen). The other option is to set the variables at Screen OnVisible. You could also easily send that mail direct from Power Apps (Office365.SendEmailV2) without the Flow, but this is not your issue here.

 

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.

Visit my blog Practical Power Apps

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,793)