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 / First Flow, get file c...
Power Automate
Unanswered

First Flow, get file content email users

(0) ShareShare
ReportReport
Posted on by 20

Hi I am creating my first flow, 

I am using Get File Content to retrieve a CSV file,

 

email, Desc

Me@me.com  ,    hello world

 

I initialize my variables then use.

 

Apply To Each,  the idea been to split the the row contents into an array and populate the send email with myArray[0]

 

However when I test run I am greeted by the error

 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('Get_file_content')?['body']' is of type 'Object'. The result must be a valid array.


the file is valid and held in sharepoint, and I can't see any properties to change the 'Object' type.  can anyone point me in the right direction please.

 

thanks jason

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,294 Most Valuable Professional on at

    @Jason8 

    You'll want to use the split() expression and split on the comma.  Split will create the array for you to loop through.  You can also use the first() and last() expressions on the array to retrieve the first or last element.

    image.pngimage.png

     

  • Jason8 Profile Picture
    20 on at

    thanks but this doesn't work when using the CSV file, I encounter the same error.

    function 'Split' expects its first parameter to be of type string. The provided value is of type 'Object'

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 204

#3
Haque Profile Picture

Haque 179

Last 30 days Overall leaderboard