PowerApps Delete multiple record

Anonymous
2022-08-10T04:49:41+00:00

I am creating one application in PowerApps .where I am select the date like Monday To Friday and its data show in Gallary where its button for delete the date but if I select the button its not delete the Monday To Friday Data to select any of the button. If I select any one button like 22 ,23,24,25 august date its will delete this four record.

I use Remove(datasouce,thisitem);

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2022-08-17T03:31:22+00:00

    Hello

    I have solved that problem now it is working fine.

    Thanks for your reply . if I will stuck any other task in future I will contact to you. If you do not mind can I get your Gmail id.

    0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-08-17T03:04:36+00:00

    Dear Rizwan,

    Thanks for your updates and sorry for the late reply.

    You may create a collection for the gallery such as Collection2 in my environment via clicking on Action>Collect>New Collection first and add Checkbox in the gallery and add the following example formula on OnSelect on the checkbox like what I showed in my environment. The data source in my environment is a SharePoint list.

    Formula on OnSelect: If(Checkbox2.Value,Collect(Collection2,LookUp(ListDemo01,ID=Gallery1.Selected.ID)),RemoveIf(Collection2,ID=Gallery1.Selected.ID))

    Finally add a button Delete and add the following formula on OnSelect.

    RemoveIf(ListDemo01,ID in Collection2.ID)

    Now when you select one or multiple records in the app and click on Delete, the records should be deleted.

    For your reference: Create and update a collection in a canvas app

    Delete multiple records from a gallery table

    Welcome to share any updates when you have time if you need further help on this issue.

    Sincerely,

    Cliff | Microsoft Community Moderator

    0 comments No comments
  2. Anonymous
    2022-08-17T08:19:54+00:00

    Dear Rizwan,

    Thanks for your updates.

    Sorry for that I may be unable to provide the email here.

    I'm glad to hear that you have solved the issue in your environment by yourself.

    Welcome to post a new thread on our forum at your convenience if you encounter any issues.

    Sincerely,

    Cliff | Microsoft Community Moderator

    0 comments No comments
  3. Anonymous
    2022-08-17T08:28:37+00:00

    Ok Thanks

    0 comments No comments