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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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.

I have the same question (0)
  • Verified answer
    rssilvaba Profile Picture
    160 on at
    Re: getting sharepoint file content using path from array config

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard