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 Platform Community / Forums / Power Automate / Dynamics 365 update us...
Power Automate
Unanswered

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

Categories:
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

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard