Hello,
I'm currently working on a solution to patch the lookup field in a subgrid for all selected child items.
Here's the scenario:
I have a parent Dataverse table named "Reservation" and a related child table named "Bookings" with a 1:N relationship. When a user opens the Reservation form, they encounter a subgrid displaying all Booking items where the "Reservation" lookup column is empty.
My objective is to enable users to select multiple items in the subgrid and then patch the "Reservation" lookup column with the current reservation.
I was trying to use following formula but can't find a way how to get data to patch Reservation column:
Patch(
'Booking Suggestions',
ForAll(
Self.Selected.AllItems,
Patch(
ThisRecord,
{Reservation: Self.Selected.Item.Reservation}
)
)
);Any guidance or assistance on achieving this would be greatly appreciated.


Report
All responses (
Answers (