i am trying to get each of my approver's name concatinate update into my remarks list in sharepoint, can't figure it out how to get the string arrays to work, anyone would help?
i am trying to get each of my approver's name concatinate update into my remarks list in sharepoint, can't figure it out how to get the string arrays to work, anyone would help?
Hello,
I think you also need to add Wait for an Approval action, if you are using Create an Approval action. If you are using Start and Wait for an Approval, then you dont need separate Wait for an Approval action. Once that is done, you can do as follows to get string of all approvers response concatenated:
1. Add Initialize Variable in the beginning of your flow, provide the name of variable as "ApproverResponses" and type as string
2. In Apply to Each action, use Responses
3. Inside Apply to Each action, add Compose action and provide following expression in the compose action
concat('Approver Name', items('Apply_to_each')?['responder/displayName'], 'Approver response', items('Apply_to_each')?['approverResponse'], 'Approver Comments', items('Apply_to_each')?['comments'])
4. Then add Set Variable action and set value of ApproverResponses to compose action output
Screenshot of the flow: