cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EricRegnier
Super User
Super User

Issue trying to Navigate to a newly created record in the new generation Command Bar with Power FX

Wasn't sure if this topic should be posted here or the Power Apps forum, but I'll give it a try here 🙂

I'm have an issue trying to Navigate to a newly created record in the new generation Command Bar with a Power FX formula. Basically, I have a custom button that creates a new record and then I want to navigate to that record right away (lets say Contacts for this example). Here's what my expression looks like:

 

If( Confirm("Are you sure you want to continue?"),
 Navigate( Patch(Contacts, Defaults(Contacts), { 'First Name':"Test" }) )
) 

 

Navigation to an existing record, entity/table list and new form works, but for some reason Navigate to new created record doesn't work for me. It just refreshes the current form. 
Anyone got this to work?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @madeleine1, no I ended up using JavaScript to create and open the newly created record.  Will try again later with the feature is more mature...

View solution in original post

6 REPLIES 6
ArchitectMadhan
Power Participant
Power Participant

Hi @EricRegnier ,

 

Could you try with the below command and see whether it navigates to the newly created contact record. Please make sure there is no duplicate first name in Contacts or provide the unique field value.

If( Confirm("Are you sure you want to continue?"),
Navigate( Patch(Defaults(Contacts), { 'First Name': "Test" }) )
)

- Architect Madhan

Please click the "Accept as Solution" button and give thumbs up, if it is helpful to you.

Thanks @ArchitectMadhan, I don’t have alt keys on contacts so have duplicate first names doesn’t matter… does this work for you?

ArchitectMadhan
Power Participant
Power Participant

Hi @EricRegnier ,

 

How about email address or phone number?

- Architect Madhan

Please click the "Accept as Solution" button and give thumbs up, if it is helpful to you.

Dont suppose you've found a way to navigate to the newly created related record?

Hi @madeleine1, no I ended up using JavaScript to create and open the newly created record.  Will try again later with the feature is more mature...

madeleine1
Frequent Visitor

Yep. I got it to navigate to the main grid, but not the individual record. Let's revisit this in the future. It would be a great feature

Helpful resources

Users online (3,962)