web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update Dataverse Looku...
Power Automate
Unanswered

Update Dataverse Lookup column using data from another column in the same table

(0) ShareShare
ReportReport
Posted on by 578

I have a  Dataverse table that has two columns (State and Estado). When the data was imported from SharePoint, the State column had the State Code followed by State Name (e.g. 22 - Louisiana). Now the Estado column is a lookup column where I need to remove the code and show only the State name. I really can't figure out how just copy the data from State to Estado using split. The split function is not the issue, using last(split(items('Apply_to_each')?['cr39c_state'], ' - ')) returns what I need. ). These are the steps I'm following. 

 

1. List Rows from the table

2. Apply to each of the List Rows values

emfuentes27_0-1668446679251.png

3. Update a row using the an unique identifier: items('Apply_to_each')?['cr39c_name'].

 

Now is when the issues start. When I'm updating the Estado column. I'm not sure if I should refer to the column within the table that contains the State with the code (State) or if I have to refer to the lookup table (States):

emfuentes27_2-1668448341960.png

 

I seen some info only about EntityName, but I'm not sure what entity I'm supposed to be referring to. In the image above I used the entity name for the States, but I just get an error:

 

{
 "error": {
 "code": "0x8006088a",
 "message": "Bad Request - Error in query syntax."
 }
}

 

 

Any ideas here?

 

Thanks in advance.

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 630

#2
Valantis Profile Picture

Valantis 420

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard