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 / Create Item with Looku...
Power Automate
Unanswered

Create Item with Lookup field in Power automate

(0) ShareShare
ReportReport
Posted on by 1,042

Dear community,

 

I have watched several video's and read several articals about this topic 😞

Still i can not figure out what i am doing wrong. I find this really hard.

So i thought maybe do this step-by-step. I hope someone can help me.

 

What i would like is to import excel data XLEmployee.xlsx to the dataverse table called dbEMPDIR_employee

and import XLManager.xlsx to the dataverse table called dbEMPDIR_manager

 

I have a table called dbEMPDIR_employee this table is empty which i would like to fill with the excel data which contains the following columns:

  • PersonalNumber (Primary column)        PN is from the employee
  • MANAGER (lookup column)

and i have another table called dbEMPDIR_manager which I allready filled it with data because it contains no lookup column.
This table contains also 

  • PersonalNumber (Primary column)      PN is from the manager

 

What should i put in the empty fields of the flow to fill the dbEMPDIR_employee ?

 

PeKi72_1-1702765536842.png

 

PeKi72_2-1702765727951.png

 

Here are several video's and articals which i do not understand:
How to update Dataverse lookup column with Power A... - Power Platform Community (microsoft.com)
Dataverse - Create Item with Lookup field in Power Automate (angelogulisano.com)
Power automate Dataverse Lookup - How to write to the hard column - YouTube

Gr. P

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @PeKi72 ,

     

    To sum it up, what you would like to achieve is listing all entries in the Excel Employee table, add them into Dataverse Employee table, where has a LookUp column gets managers from Dataverse Manager table.

     

    First, list the Employees from Excel Employee table.

     

    Second, you need to get specific manager from the Managers table, based on the manager column value from Excel table. So, the List rows action Filter query

    PersonalNumber eq items('Apply_to_each')?['PersonalNumber']

    Explanation: the first PersonalNumber is column name in Manages Dataverse table, the second is column name in Employees Excel table.

     

    At last, Add a row to Employees Dataverse table. How to create LookUp column value? You need to use the GUID from the previous List rows action. Basically, the expression would be:

    /manager('items('Apply_to_each_2')?['GUID Column name']')

    For more details, you can refer to below blog:

    How to update Dataverse lookup column with Power Automate (tomriha.com)

     

    Best regards,

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard