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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to update Datavers...
Power Automate
Unanswered

How to update Dataverse lookup column with Power Automate from CSV file

(2) ShareShare
ReportReport
Posted on by 55

Hi everyone,

I would like to ask on how to update look up field when adding a row from CSV file.  I successfully created a flow that create a record from CSV, however I also want to add update lookup field but I'm getting an error.

 

Csv File Contents

Beelieve_2-1690353682621.png

Beelieve_0-1690354360710.png

 

 

 

Categories:
I have the same question (0)
  • sandeepstw Profile Picture
    312 Moderator on at

    Hi There,

     

    For the lookup column you need to provide JSON -

     

    In the field for your lookup column, you need to provide a JSON object that contains two properties:

    Id: the identifier of the item in the referenced list
    Value: the text value of the item
    The JSON structure should look like this:



    {
    "Id": [Your Lookup Value Id],
    "Value": "[Your Lookup Value Text]"
    }

     

    This article will also help you get a clear view - 

    https://www.youtube.com/watch?v=BrjobdJqvEQ

     

    Please give kudos and mark as solution if it helps.  

      

    Thanks, 

    Sandeep Mishra 

     

  • Linn Zaw Win Profile Picture
    2,996 on at

    @Beelieve 

    To set the lookup column, you need to retrieve the GUID of the lookup value first. (E.g. use the List Rows action to retrieve the Account with the Name = Account1). Then, you need to define the logic on how to handle if you identify more than one record or if there is no record.

    Once you get a single GUID value (usually the [0] value from the array output of the List Rows action), you can set the lookup value using the Â«EntitySetName»(«RecordGUID» format. Please refer to my blog post below for more details.

    https://linnzawwin.blogspot.com/2019/11/power-automate-how-to-set-lookup-field.html

     

     

     

  • Ma03 Profile Picture
    9 on at

    Hello,

     

    I was with the same issue, watching videos and trying to figure out how to add a row which is a Lookup from an Excel.

    I founded this site: https://angelogulisano.com/dataverse-create-item-with-lookup-field-power-automate/

    Basically after you "List Rows" with the schema that should be linked you need to add an expression on the field that you want to be populated with the lookup value with the ROWGUID

     

    here is the expression:  first(body('List_rows')?['value'])?['@odata.id']

     

    Mari3_0-1699968213529.png

    Mari3_1-1699968283902.png

     

    Mari3_2-1699968330597.png

     

    Good luck!!

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard