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 / Create button PowerFX ...
Power Apps
Unanswered

Create button PowerFX on subgrid with related entity ID

(0) ShareShare
ReportReport
Posted on by 18

I have three tables in my modeldriven app:

 

  1. Cases
  2. Customer Assets
  3. Case Asset (has a lookup to Case and Customer Asset)

On the form Case I have a subgrid to Customer Assets.

A user selects one or more Customer Asset in the subgrid and then the Power FX button on the subgrid should create records Case Asset for each selected row.

 

Is it possible to retrieve the guid from the entity Case when you have a button on the subgrid Customer Asset?

Categories:
  • steeevid Profile Picture
    333 Super User 2024 Season 1 on at

    Yeah I dont understand why NO BODY care about this issue, i couldn't find a way to retrive parent GUID from power fx in a subgrid, this is extremely annoying!

     

    We just need to set the lookup of a field in the subgrid to be the parent row ID, this is frustrating!

  • steeevid Profile Picture
    333 Super User 2024 Season 1 on at

    Updates: I am able to achieve this with command button triggered Javascript:

     

    When adding the JavaScript to the command button, you need to pass the parent item info as a paramater into the function, like below:

     

    addNewRow(selectedControl, PrimaryItemID, PrimaryEntityTypeName)
     
    PrimaryItemID is the parent entity GUID
    PrimaryEntityTypeName is the parent entity logical name
     
    Then you are able to implement logic inside the function.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard