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 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
Users Online
Currently online: 321 members 5,814 guests
Please welcome our newest community members: