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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / getting sharepoint fil...
Power Automate
Unanswered

getting sharepoint file content using path from array config

(0) ShareShare
ReportReport
Posted on by 160

Hi All,

I just need to create a flow that sends an email weekly all data and images are variable and since this need to work on the outlook client I need to embed most of the assets (let me know if you know other ways around that).

So I have an array with the relative path of all assets that the email might use.
[{"name":"logo","path": "/fakepath/assets/logo.png"}]

What I wanted is to either, add a content prop with the file content value or create an object and append to a new array with the result but keeping the name prop. ex from above: 
Original modified array [{"name":"logo","path": "/fakepath/assets/logo.png", "content": "fakecontent"}]
or
New array [name:"logo", content: "fakecontent"]

I found some articles but I did not understand yet how to update a existing array or append an object to the new array.
This is the error I keep getting:

 

rssilvaba_0-1617279915303.png

here is the formula: 

addProperty(items('EachAssetConfig'),'content',outputs('EachAssetConfig')?['body'])

 


Thank you all.

Categories:
I have the same question (0)
  • Verified answer
    rssilvaba Profile Picture
    160 on at

    Hi,
    I referred the wrong outputs.
    here is the correct formula:
    addProperty(items('EachAssetConfig'),'content',outputs('Get_file_content_using_path')?['body'])

     

    now it works.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard