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?

3 REPLIES 3
ArchitectMadhan
Super User
Super User

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
Super User
Super User

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.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,993)