web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamic approvals work...
Power Automate
Unanswered

Dynamic approvals workflow

(0) ShareShare
ReportReport
Posted on by 85

Hi all,

I'm struggling with a dynamic approvals workflow.

I have two lists - one for new submissions that triggers the automated flow, and one with dynamic approvers based on "Subjects".

in the submissions list, there's a multiple selectable choices column called "Subject".

In the dynamic approvers list, for each "Subject", there's person column with multiple approvers per "Subject".

Regardless if one or multiple "Subjects" are selected, I want to combine all the approvers together that apply to the one or more "Subjects" into one string of e-mail addresses to send the approval to.

Some "Subjects" approvers may have the same approvers as other subjects, so a given approver might appear twice based on the subjects picked.

I'm struggling (!) with trying to get the list of combined approvers e-mails into a single string with duplicate e-mails removed.  Every video I find showing how to do this has multiple approvers but doesn't combine multiple topics approvers together into one.

 

Thanks in advance for any assistance!

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @russrimm1 ,

     

    Let's say the 'Subject1' and 'Subject2' are selected.

    vxiaochenmsft_0-1692239077409.png

    vxiaochenmsft_1-1692239636161.png

    vxiaochenmsft_2-1692239669433.png

    vxiaochenmsft_3-1692239698528.png

    union(split(replace(trim(variables('var')),' ',','),','),split(replace(trim(variables('var')),' ',','),','))
    vxiaochenmsft_4-1692239744210.png

     

    Best Regards,

    Wearsky

     

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard