cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
drewcarousel
Frequent Visitor

Dynamics 365 update user field in approval process

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

1 ACCEPTED SOLUTION

Accepted Solutions
ManishJain
Solution Sage
Solution Sage

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

View solution in original post

5 REPLIES 5
ManishJain
Solution Sage
Solution Sage

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

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

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

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

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

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,349)