Announcements
Out of the box, no form fields like Invoice Amount / Ledger Total are bound to the main form record, so they won’t automatically change when you click a row in an editable subgrid.
To achieve what you want, you need a small customization using the grid’s OnRecordSelect event (available for editable grids/Power Apps grid): when a row is selected, run JavaScript to read the selected record ID, retrieve the values (e.g., via Xrm.WebApi.retrieveRecord), and then display them (ideally in a web resource/PCF/side pane). Avoid writing them into normal bound fields unless you really intend to update the main record.
Xrm.WebApi.retrieveRecord
Grid OnRecordSelect event: https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/events/grid-onrecordselect
Xrm.WebApi.retrieveRecord: https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-webapi/retrieverecord
let me know if that answers your question.
Best regards, Valantis
Hi @ctedesco3307,
Just wanted to check in and see if everything is working now. If you still need any help, feel free to let me know.
Also, if the issue is resolved, it would be great if you could mark the answer as solved so others with the same question can find it easily.
Thanks and have a great day!
Yes. Using JS with the Editable Grid OnRecordSelect event and Xrm.WebApi.retrieveRecord is a supported.
Relevant Microsoft docs:
I hope this works for you!
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 424
WarrenBelz 355 Most Valuable Professional
11manish 290