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 / Uncheck all the combob...
Power Apps
Unanswered

Uncheck all the combobox options which allow multiple selection, will still pass one item to sharePoint

(0) ShareShare
ReportReport
Posted on by 2,132 Season of Giving Solutions 2025

I have this formula inside a Form OnSuccess property, to get all the items from SharePoint, and if they are not represented in the Combo Box selected items to remove them:-

 

 

ClearCollect(
 colcurrentPackageNetworks,
 Filter(
 'Package Networks',
 'Package ID' = PackagesForm.LastSubmit.ID
 )
);
ForAll(
 colcurrentPackageNetworks As c,
 If(
 IsEmpty(
 Filter(
 PackageNetworksComboBox.SelectedItems,
 ID = c.'Network ID'
 )
 ),
 Notify(
 c.ID,
 NotificationType.Error
 );
 Remove(
 'Package Networks',
 
 First(Filter(
 'Package Networks',
 'Network ID' = c.'Network ID' And 'Package ID' = PackagesForm.LastSubmit.ID
 ))
 
 ),
 false
 );
 
);
Clear(colcurrentPackageNetworks);
ClearCollect(
 colSelectedPackageNetworks,
 PackageNetworksComboBox.SelectedItems
);
ForAll(
 colSelectedPackageNetworks As c2,
 If(
 IsEmpty(
 Filter(
 'Package Networks',
 'Package ID' = PackagesForm.LastSubmit.ID And 'Network ID' = c2.ID
 )
 ),
 Notify(
 c2.ID,
 NotificationType.Success
 );
 Patch(
 'Package Networks',
 Defaults('Package Networks'),
 {
 'Package ID': PackagesForm.LastSubmit.ID,
 'Network ID': c2.ID,
 NetworkTitleSync: LookUp(
 Networks,
 ID = c2.ID
 ).Title
 }
 ),
 false
 );
 
);
Clear(colSelectedPackageNetworks);
Navigate('Packages List');
Notify(
 varConfirmationMessage,
 NotificationType.Success
);

 

 then to get all the selected combobx items and add them.. now if i remove all the options from the combox, still one item will be added to sharepoint, what could be the issue?

 

Thanks

Categories:

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard