web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issue trying to Naviga...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 8,720 Most Valuable Professional

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?

I have the same question (0)
  • ArchitectMadhan Profile Picture
    1,584 on at

    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" }) )
    )

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

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

  • ArchitectMadhan Profile Picture
    1,584 on at

    Hi @EricRegnier ,

     

    How about email address or phone number?

  • madeleine1 Profile Picture
    5 on at

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

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    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 Profile Picture
    5 on at

    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

  • Cyris Lai Profile Picture
    15 on at

    Instead of Navigate, I've used Launch function to achieve this function. By default it will always open a new tab on your browser to open the newly created record. I think you can set the LaunchTarget option.

     

    Using Eric's example, it can be done like this:

     

    Launch(
     "https://xxx.crm.dynamics.com/main.aspx?appid=xxxx-xxxx-xxxx-xxxx-xxxx&pagetype=entityrecord&etn=contact&id=" & 
     Patch(Contacts, Defaults(Contacts), { 'First Name':"Test" }).Contact
    )

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard