cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Navigate to Specific Record From Button

Hi all,

 

I have a canvas apps application, in the application, I have a button. I want to make a function that triggers when the button is pressed. the function (using flow) has to create a new record (in another table), after creating a new record the function must navigate to the record created by the flow.

 

I know how to make a new record from flow, but I don't know how to navigate to another page and open the record on another page and show the record like the picture below.

 

TirtaHema_1-1614756674395.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Anonymous ,

 

According to your description, I've made a test for your reference:

 

1\ Build an instant flow:

v-xiaochen-msft_0-1614912356775.png

 

2\ Create a screen ‘Screen2’.

 

3\ Create a button control in screen1 and set its onselect property to:

 

Set(Thevar2,TEST33.Run().thevar);Refresh(LIST86);Navigate(Screen2)

// TEST33 is the name of flow

 

 

4\ Add a form control in screen2 and set its Datasource property to:

 

LIST86

 

 

Set the form control’s Item property to:

 

LookUp(LIST86,ID=Value(Thevar2))

 

 

5\ The result is as follows:

AAA.gif

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

4 REPLIES 4
lenro
Helper IV
Helper IV

Hi @Anonymous ,

 

Without knowing details...I think after your flow you can update a gallery where all of your records are stored and then make the newly created a top one, so it will be always considered as "selected". Therefore you can navigate to the page which is showing selected "ID"

Anonymous
Not applicable

hi @lenro,

 

Thanks for the answer, I think you got my problem. how can I select the item in the gallery if the item not in the first position? 

lenro
Helper IV
Helper IV

Hi @Anonymous ,

 

If it is not first or last on gallery, then you need to know what is written in this record and filter on it

v-xiaochen-msft
Community Support
Community Support

Hi @Anonymous ,

 

According to your description, I've made a test for your reference:

 

1\ Build an instant flow:

v-xiaochen-msft_0-1614912356775.png

 

2\ Create a screen ‘Screen2’.

 

3\ Create a button control in screen1 and set its onselect property to:

 

Set(Thevar2,TEST33.Run().thevar);Refresh(LIST86);Navigate(Screen2)

// TEST33 is the name of flow

 

 

4\ Add a form control in screen2 and set its Datasource property to:

 

LIST86

 

 

Set the form control’s Item property to:

 

LookUp(LIST86,ID=Value(Thevar2))

 

 

5\ The result is as follows:

AAA.gif

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

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 (6,249)