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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using Expression for B...
Power Automate
Answered

Using Expression for BBC field in outlook email to send email to multiple people on basis of Task Category

(0) ShareShare
ReportReport
Posted on by

Hello,

I am using power automate connected with power apps so that whenever an action has been taken on certain category ticket, an outlook email is sent to requester keeping admin team in BCC.

i am using below expression for BCC field- 

 

if(equals(items('Apply_to_each')?['Category']?['Value'], or('Position Creation','Hiring','Termination','Restructure','Personal Information','Employment Information','Global Assignment'),concat('justin@abc.com','pia@abc.com','allison@abc.com,maria@abc.com,ruel@abc.com,earl@abc.com,Ajay.l@abc,siddharth@abc.com, ';'),'Aj@abc.com')

 

#Power Automate # Expressions

 

When i use this expression then it say 'Invalid'. There is something wrong but, i am unable to figure it out.

Could please help how i can mention multiple categories and how effectively can maintain multiple email addresses in expression.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,125 Most Valuable Professional on at

    I think the problem is the way you are setting up the equals().  You can't use the or() function to add multiple values to be considered.  You need to do something more like this where each potential value has its own equals()

    if(or(

    equals(items('Apply_to_each')?['Category']?['Value'], 'Position Creation'),

    equals(items('Apply_to_each')?['Category']?['Value'], 'Hiring'),

    equals(items('Apply_to_each')?['Category']?['Value'], 'Termination),

    equals(items('Apply_to_each')?['Category']?['Value'], 'Restructure'),

    equals(items('Apply_to_each')?['Category']?['Value'], 'Personal Information'),

    equals(items('Apply_to_each')?['Category']?['Value'], 'Employment Information'),

    equals(items('Apply_to_each')?['Category']?['Value'], 'Global Assignment'))

    ,concat('justin@abc.com','pia@abc.com','allison@abc.com,maria@abc.com,ruel@abc.com,earl@abc.com,Ajay.l@abc,siddharth@abc.com, ';'),'Aj@abc.com')

  • AJ_vizMan Profile Picture
    on at

    Hi @Pstork1 - Thank you for response. I am still struggling with above above expression.

    Earlier i posted that need to use 'Category' column in expression but, i need to use 'Sub Category' column in the expression instead.

     

    I tried 2 things -

    1. Used the equals expression as suggested and concatenated the email addresses. But, it's throwing an error

     

    AJ_vizMan_0-1623070587836.png

    It says 'Selection is not supported on values of type 'string'.

     

    2. Tried to initialize a variable of string type to hold email addresses but, it again results in error indicating

     'Selection is not supported on values of type 'string'.

    I think 'Sub Category' column type seems to be creating an issue. Any advice how we can deal with it.

    Thank you for your great support.

     

     

    Is it due to column type difference? 

    Have used 2 columns here 1. Sub Category - It is 'Single line of text' type column

    2. 

  • Verified answer
    Pstork1 Profile Picture
    69,125 Most Valuable Professional on at

    The use of ?['Value'] would be for a dropdown column.  for a single line of text it should just be 'Apply_to_each')?['SubCategory']

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard