Skip to content

Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Problems
  • Triggers
  • Application specific solutions
    • Excel
    • Forms
    • Planner
    • Outlook
    • SharePoint
    • Teams
  • Resources
Menu

How to update multiple lookup SharePoint column with Power Automate

Posted on September 1, 2021September 1, 2021 by Tom

“Is there an easy way to update only a single multiple lookup column in SharePoint with a Power Automate flow? What would it look like?”


The SharePoint lookup column is one of the more challenging columns to update. You can’t update it to a value directly, you must use the value lookup id. That’s the id of the entry in the source list. If it’s just a single lookup value, you can use the simple HTTP request to update the column. But with the multiple lookup column the value in the request is different.

HTTP request to update multiple lookup column

Similar to the update of a multiple choice column, you must use the correct separator between the values. For the choice column it was ‘;#’. For the lookup column it’s the same, but twice: ‘;#;#’. As an example, to update lookup values with id 1, 2 and 3 it’ll look as below:

1;#;#2;#;#3

That’s the id’s format to use in the <ValueToUpdate> field in the HTTP request.

Method: POST

Uri: _api/web/lists/GetByTitle('<ListName>')/items(<ItemID>)/validateUpdateListItem

Body:
{
    "formValues":[
	{
	    "FieldName": "<FieldToUpdate>",
	    "FieldValue": "<ValueToUpdate>"
	}
    ]
}

Note: < … > are placeholders, replace them including the < and >.

"FieldValue": "1;#;#2;#;#3"
Power Automate update multiple lookup column

Summary

The need to update multiple lookup SharePoint column is not as common as the others when using Power Automate. More often it’s a multiple people picker or multiple choice column, but if it’s a lookup, it might be confusing. While the validateUpdateListItem function is very easy to use, you can spend a lot of time searching for the right FieldValue. It differs depending on the column type, and then even more if it’s single or multiple selection. But once you know the right format, you just need to build the right string, e.g. extract it from an array, and use it to update the item.


Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Now available:

The Ultimate Power Automate expressions cheat sheet
Equip yourself with the tool to translate your thoughts into Power Automate expressions!

Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Hello and welcome!

My name is Tom and I'm a business process automation consultant and Microsoft MVP living in the Czech Republic. I’ve been working with Microsoft technologies for almost 10 years, currently using mainly Power Automate, SharePoint, Teams, and the other M365 tools.

I believe that everyone can automate part of their work with the Power Automate platform. You can achieve a lot by "clicking" the flows in the designer, but you can achieve much more if you add a bit of coding knowledge. And that's what this blog is about.

To make the step from no-code Power Automate flows to low-code flows: using basic coding knowledge to build more complex yet more efficient flows to automate more of your daily tasks.

  • Format results of date calculation in SharePoint columnJune 29, 2022
  • Why is your Power Automate flow creating duplicatesJune 26, 2022
  • How to create a unique identifier in your Power Automate flowJune 22, 2022
  • How to assign custom SharePoint permission level with Power AutomateJune 19, 2022
  • Remove permissions from a specific SharePoint user with Power AutomateJune 15, 2022

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

© 2022 Let's POWER Automate | Powered by Superbs Personal Blog theme