cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AppDeveloper
Helper III
Helper III

Bulk update with Collection where one column is choice based

Hi 

 

I have a SharePoint list with say two columns, Post and Priority. Priority is a choice based column with three values ie. High, Medium and Low.

 

I am making a collection (rowid, jobTitle, Priority) and want to update Priority Column of SharePoint list Where list's Post column is equal to myCollection.jobTitle. But the problem is the Priority column in SharePoint List is choice based. I am using this formula but getting error.

please note that myCollection has multiple records and I all of them to process at once.

 

 

UpdateIf('sharepointList', Post in myCollection.jobTitle, {Priority: myCollection.Priority.Value});

 

 

I did try with Patch() too but could not insert value of myCollection.Priority.Value into Priority column

 

Any thoughts on this Please?

 

Regards

 

5 REPLIES 5
Drrickryp
Super User
Super User

@AppDeveloper 

Do you mean to have a comma following .value at the end of your formula?

Thanks for your reply

 

no that is just type while writing this post

Alex_10
Super User
Super User

@AppDeveloper 

Post column values in your SP list are unique (never repeat)?

Hi @Alex_10  yes these are unique and never repeat.

 

Alex_10
Super User
Super User

@AppDeveloper 

 

ForAll(colYourName As ThisYourNameRow,
    With({tempThisSPRow: LookUp(SPlistName, Post = ThisYourNameRow.jobTitle) },
        If(!IsBlank(tempThisSPRow), Patch(SPlistName, tempThisSPRow, { Priority: {Value: ThisYourNameRow.Priority.Value} }) )
    )
)

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,029)