Hi
This is a "Custom Responses - Wait for 1 response". So, I know there will be one approver. I need to acccess the approving person's name with out using "apply to each". When I select the approver name, the apply-to-each is automatically added. Please help.
Solved! Go to Solution.
meanwhile I was trying different ways. I think i figured.
And Yes, I took your advice of using a variable.
But, to avoid automatic addition of 'apply to each' i use a new variable or compose to
outputs('Start_and_wait_for_an_approval')?['body']?['responses'][0]?['responder']?['displayName']
Thanks for the tip. now there is no unnecessary apply to each.
C1
@cadone Addition to your point for future reference- Whenever you want to create expression-Use raw input/outputs and construct your expression.
Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.
I tried it. It still adds an "apply for each" see below.
I dont want a apply for each. I know only 1 approver will be present because i use "wait for 1 response".
Is there a code or expression to access the approver name so that it wont automatically add a "apply to each"
@cadone it will apply it. This is the functionality. But if you already know approver email better use user profile action and fetch user details from there.
Or tell me what you are trying to achieve from approver name?
Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.
There are multiple approvers. But any one of them can approve. I have a column “approved by” in a sharepoint list that I want show approvers name.
@cadone Then you should use variable here. Whoever respond first it will store their name in Variable Which you can supply in SharePoint Column.
Do not confuse with Multiple Assigned To will come into variable. You are using Responder Approval Name here.
Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.
meanwhile I was trying different ways. I think i figured.
And Yes, I took your advice of using a variable.
But, to avoid automatic addition of 'apply to each' i use a new variable or compose to
outputs('Start_and_wait_for_an_approval')?['body']?['responses'][0]?['responder']?['displayName']
Thanks for the tip. now there is no unnecessary apply to each.
C1
I had never visited that before. I see the pattern. Wow, that would have made my life lot easier. Double thumbs up for showing this.
👍👍
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
49 | |
18 | |
15 | |
13 | |
13 |
User | Count |
---|---|
61 | |
42 | |
24 | |
22 | |
19 |