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 / Array elements and int...
Power Automate
Suggested Answer

Array elements and integer index issue

(0) ShareShare
ReportReport
Posted on by 12
Hi all - I was trying to follow this link and here is the error I am getting and I don't know how to fix it because I don't know integers and arrays very well. Unable to process template language expressions for action 'Condition_2' at line '0' and column '0': 'The template language expression 'empty(triggerBody()?['@removed']?['reason'])' cannot be evaluated because property '@removed' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'.
 
Here is my flow. Thank you in advance! 
 
11.png
12.png
Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    The Get User action should be outside the Apply to each loop.
    You shouldn't require a loop anyway?
  • Suggested answer
    CU16121926-0 Profile Picture
    12 on at
    Hi @SudeepGhatakNZ​​​​​​​
     
    When I add the "user id" into the field for Get User, it forces it into an apply to each
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    Can you share the output of the Get group action?
    You can mask the usernames
  • CU16121926-0 Profile Picture
    12 on at
    Hi @SudeepGhatakNZ​​​​​​​
     
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    Please follow this template.
     
  • CU16121926-0 Profile Picture
    12 on at
     
    Thank you! what should the conditions be?
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
     
    Form what I can see you are trying to do is grant access to an user who is added to an Office 365 group to a team. correct?
    Is the Team not connected to the group? Users added to the Office 365 Group should automatically gain access to the corresponding Microsoft Team.
    Is it a private Team you are trying to add the user into?
     
  • CU16121926-0 Profile Picture
    12 on at
     
    Correct. It is a separate private team
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    This works for me.
     
  • CU16121926-0 Profile Picture
    12 on at
     
    If people are removed, I dont want them added to a team though. It has to be only when they are added hence the conditions

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard