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

Referencing collection item within Updateif

Hello all,

 

I have the code below that tries to find a part description in a sharepoint list if a collection value is empty.  EditItems is my collection and 'Part Descriptions' is my sharepoint list.

 

The issue is that the code below doesn't seems to be able to properly reference EditItems[@'Part Number'], I continue to get blank values after this code runs.  If I replace EditItems['Part Number'] with an actual part number then the code correctly finds the match.

 

Is there a way to adjust the code below to find the corresponding EditItems 'Part Number'?

 

UpdateIf(
    EditItems,
    'PartDescription' = Blank(),
    {
        'PartDescription': LookUp(
            'Part Descriptions',
            'Part Number' = EditItems[@'Part Number'],
            'Short Description'
        )
    }
)

 

Thanks,

Travis

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,145)