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
Solved! Go to Solution.
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 @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
User | Count |
---|---|
89 | |
37 | |
26 | |
13 | |
13 |
User | Count |
---|---|
127 | |
54 | |
38 | |
24 | |
21 |