cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kathryn_Marie
Level: Powered On

UpdateIf with a listbox

Hi All,

 

I have got a record updating if there is a matching record in a table, but I am actually looking at doing the opposite to this. If it finds the item in the table it updates all the other records. My code works to update the record, so what is the opposite to in? I tried NOT but that doesn't work.

 

ForAll(Gallery1.AllItems,
UpdateIf(Mapping, crb20_item in ListBox4.SelectedItemsText.Value, {cr330_item_order: cr330_item_order + 2 }));

 

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAddict
Level 10

Re: UpdateIf with a listbox

Hi,

Can you try something like this?

ForAll(Gallery1.AllItems,
UpdateIf(Mapping, !(crb20_item in ListBox4.SelectedItemsText.Value), {cr330_item_order: cr330_item_order + 2 }));

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

3 REPLIES 3
PowerAddict
Level 10

Re: UpdateIf with a listbox

Hi,

Can you try something like this?

ForAll(Gallery1.AllItems,
UpdateIf(Mapping, !(crb20_item in ListBox4.SelectedItemsText.Value), {cr330_item_order: cr330_item_order + 2 }));

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

Kathryn_Marie
Level: Powered On

Re: UpdateIf with a listbox

Perfect!

 

Thank you 🙂

PowerAddict
Level 10

Re: UpdateIf with a listbox

Glad I could help!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (3,854)