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 / Action 'Apply_to_each'...
Power Automate
Answered

Action 'Apply_to_each' failed

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I have a automated flow which trigger an HTTP viber api. The process logic is below to better understand.

 

1. Get Records of Data from a sql view to compose a message content to HTTP viber api. (SQL Get Rows v2)

2. Get Phone numbers from sql table. (SQL Get Rows v2)

3. Setup HTTP to trigger Viber Api with each Phone numbers plus the message content from view (HTTP).

 

My problem is i can't figured out why im getting 'The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')?['Phonenumber']' is of type 'Integer'. The result must be a valid array.'

 

powerappserror.png

Categories:
I have the same question (0)
  • Verified answer
    MJain Profile Picture
    2,450 on at

    HI @phoenixpub ,

     

    Get Phone numbers is giving you array , then why are you doing two loops in the next step . Please remove that and use your http call .

     

    Thanks

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
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard