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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get Parent Record Link...
Power Apps
Suggested Answer

Get Parent Record Link Using Patch Function

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Dear All, 
 
Hope you are doing well! 
 
I am using Patch function to copy / clone records for Command Bar in Main Form and further it requires to have a Parent/ Current record URL which will be populated under Custom Column (Parent Link -Text Field Column) in Cloned record. Please advise for next steps that will populate Parent Record Link under Cloned record custom Column using Power FX query.
 
Power FX Formula:
 
Patch('Accounts',Defaults('Accounts'),
{Name:"Copy of" & ThisRecord.Name});
 
Thanks & Regards
Categories:
I have the same question (0)
  • Suggested answer
    Gabriel G. Profile Picture
    831 Super User 2025 Season 2 on at
    Hi there!
     
    My suggestion is to create a Formula column containing the parent Name (hidden). Then, in your Command bar formula, you simply get your FX field and apply it to your record Name:
     
    Patch(
        'Accounts',
        Defaults('Accounts'),
        {
            Name: Self.Selected.Item.NewFXField
        }
    )

    I hope it helps!
    ________________________________________________________________________
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard