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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Dynamics 365 update user field in approval process

(0) ShareShare
ReportReport
Posted on by 18

Dear community,

 

I have an approvals process in place using the custom responses option. What I want to do is update an opportunity in Dynamics with a user name, depending on which option is chosen from the response.

 

I've tried typing the user name in the field & also the GUID but the flow will not work. Help please!

 

Best regards,

 

Drew

I have the same question (0)
  • Verified answer
    MJain Profile Picture
    2,450 on at
    Re: Dynamics 365 update user field in approval process

    Hi @drewcarousel ,

     

    To update a lookup in Flow with the Current Environment connector in general you need to prefix it with /<entity collection name>(<entityid>)

     

    for ex. in your case it should be /systemusers(guid)

     

    Thanks

  • drewcarousel Profile Picture
    18 on at
    Re: Dynamics 365 update user field in approval process

    Hi @ManishJain

     

    This is perfect thank you! For some reason I cant select this a solution.

     

    I have one final question - I want to update the record with the approver user. How can I update the record with the user name from the approval response?

     

    Best regards,

     

    Drew

  • MJain Profile Picture
    2,450 on at
    Re: Dynamics 365 update user field in approval process

    Hi @drewcarousel ,

     

    You need to do Get Record from User entity based on email to which you are sending approval email. From this you can get the record id of user and use it in setting lookup value

     

    Thanks

  • drewcarousel Profile Picture
    18 on at
    Re: Dynamics 365 update user field in approval process

    Hi @ManishJain,

     

    the "Get record" action only allows me to retrieve information based on the GUID though? Can you let me know how I search for a record with the email?

     

    Best regards,

     

    Drew

  • MJain Profile Picture
    2,450 on at
    Re: Dynamics 365 update user field in approval process

    HI @drewcarousel ,

     

    sorry I meant List records and use Users entity and in filter query use internalemailaddress eq 'yourmailaddress' , also in Top count set 1 as you will be getting only 1 record. Then once you get results use 

     

    first(outputs('Get_Users')?['body/value/userid']) to get the user guid. Please use compose to get the output from List records and set 'userid' accordingly in expression.

     

    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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 722 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 461 Moderator

#3
developerAJ Profile Picture

developerAJ 283

Last 30 days Overall leaderboard