Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1