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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to set lookup field as current user in a cloud flow using power apps

(0) ShareShare
ReportReport
Posted on by 30

Hi,

I have a field called approved by which is a lookup field. When the approve cloud flow is triggered it should set approved by to the current user, but I can't find away to select current user:

pastedimage1643221230340v1.pngwhat do I select there? 

If that helps, the approve cloud flow is triggered when a boolean is set to yes. 

I tried googling it for 2 hours and I couldn't find an answer. Any help would be really appreciated. 

Thank you

I have the same question (0)
  • Suggested answer
    Vipin J Profile Picture
    1,603 on at

    user syntax like systemusers(Guid of current user)

    Refer my blog: https://vjcity.blogspot.com/2019/11/moving-attachments-of-dynamic-365-crm.html

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    You will need to add List Rows to fetch User record based on Approved By Email Address -

    CR74.PNG

    Select 'Responses Approver email' from dynamic content in Filter rows.

    Now you will select first record systemuserid from list rows and store it in variable -

    CR75.PNG

    Now use this variable to set your lookup field as below -

    /systemusers(Variable from dynamics content)

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Updated Filter Rows Syntax -

    internalemailaddress eq 'Responses Approver Email'

    Thanks,

    Bipin

  • Suggested answer
    dev2143 Profile Picture
    30 on at

    Ok, so I managed to get it to work by combining the advice from the answers below with more info that I found online.

    1) I get the current user email using Get My Profile (V2) (I couldn't get the responses from the answer below).

    pastedimage1643317647938v1.png

    2) Create a List Rows and select the Users table. Then filter it using the email.

    pastedimage1643317679821v2.png

    3) In Executive Summary Last updated, write /systemusers(@{first(outputs('List_rows')?['body/value'])?['systemuserid']}). @{first(outputs('List_rows')?['body/value'])?['systemuserid']} is a function that you can write in the function editor. 

    pastedimage1643317719285v3.png

    pastedimage1643317742617v4.png

  • Suggested answer
    Manoj Mane Profile Picture
    1,020 on at

    Hi dev2143,

    We can set the any lookup filed value in Power Automate as follow:-

    pastedimage1643352024370v1.png

    Thanks,
    Manoj.

    Please mark this as VERIFIED if it helps.

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    I'm Glad that it worked.

    Please mark my answer verified by selecting 'Yes' under Did this answer your question?

  • KarthikKota Profile Picture
    on at

    Awesome, worked thanks.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans