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

Community site session details

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

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
    Re: Issue trying to Navigate to a newly created record in the new generation Command Bar with Power FX

    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
    Re: Issue trying to Navigate to a newly created record in the new generation Command Bar with Power FX

    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
    Re: Issue trying to Navigate to a newly created record in the new generation Command Bar with Power FX

    Hi @EricRegnier ,

     

    How about email address or phone number?

  • madeleine1 Profile Picture
    5 on at
    Re: Issue trying to Navigate to a newly created record in the new generation Command Bar with Power FX

    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
    Re: Issue trying to Navigate to a newly created record in the new generation Command Bar with Power FX

    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
    Re: Issue trying to Navigate to a newly created record in the new generation Command Bar with Power FX

    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
    Re: Issue trying to Navigate to a newly created record in the new generation Command Bar with Power FX

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard