Hi @Sai47
Add a new Boolean column to your SharePoint list called "Selected" to store the selection status of each item.
In the OnCheck property of the checkbox, update the "Selected" column of the corresponding item in the SharePoint list to true.
Patch(
'SPList',
LookUp('SPList', ID = ThisItem.ID),
{Selected: true}
);
In the OnUncheck property of the checkbox, update the "Selected" column of the corresponding item in the SharePoint list to false.
Patch(
'SPList',
LookUp('SPList', ID = ThisItem.ID),
{Selected: false}
);
In the Items property of the gallery, filter the data source based on the "Selected" column.
Filter('SPList', Selected = true)
In the Accept button's OnSelect property, update the "Selected" column of the selected items in the SharePoint list to false.
ForAll(
Filter('SPList', Selected = true),
Patch(
'SPList',
LookUp('SPList', ID = ID),
{Selected: false}
)
)
Thanks!
If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.