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 / If Condition: If Index...
Power Automate
Unanswered

If Condition: If Index Contains Value, step 1 if not step 2

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am trying to run an If condition. I want the "If" to be if %Variable% has a value in Index[2] then send X email. 

And  if %Variable% has a value in Index[1] then send Y email.

And again if %Variable% has a value in Index[0] then send Z email

 

The process keeps bringing up an error

pkositz_0-1659566491026.png

 

But I want it to skip to the next step if the index is out of range. Is that possible? 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Yes its possible to bypass any error by having an Error Block and take the next course of action.

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 298 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 150 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 147 Super User 2026 Season 2

Last 30 days Overall leaderboard