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 / Send Sharepoint file c...
Power Automate
Answered

Send Sharepoint file content to Child flow

(0) ShareShare
ReportReport
Posted on by 114

Hello experts

I am trying to send my file content from sharepoint to a child flow and create a file from child flow but I get errors all the time.
This is my Parent flow:

Angela23_0-1695417482520.png

 

and this is my child flow:

Angela23_1-1695417525887.png

Error:

Angela23_2-1695417633292.png

 

your help will be appreciate a lot.
Regards 
Angela



@Pstork1 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,685 Super User 2025 Season 2 on at

    Hi

     

    How come you are converting to Base64?

     

    You are doing it as you pass it to the Child and within the child.

    Have you tried doing it without converting as you pass it?

     

  • Pstork1 Profile Picture
    68,858 Most Valuable Professional on at

    Files are sent between flows as Text encoded JSON records. But what file are you trying to send? You are using an Item trigger. Items can have 0, 1, or more attachments. So what file content are you trying to send? That will determine the dynamic content you want to send, but it probably won't be Body and it definitely won't be using Base64toBinary. When I get a few minutes I'll put together a quick sample with screenshots.

  • Michael E. Gernaey Profile Picture
    53,685 Super User 2025 Season 2 on at

    It is actually the Body.

     

    Specifically in his case its body('Get_file_content'), thats why I wondered why he was converting it to Base64

  • Pstork1 Profile Picture
    68,858 Most Valuable Professional on at

    Here's a working set of screenshots based on when a file is created in a library.

    Parent Flow

    image.png

    Child Flow Trigger

    image.png

  • Angela23 Profile Picture
    114 on at

    Thank you for your answers @FLMike  and @Pstork1 
    My file can be a Word or Pdf document.
    Here I try to do As @Pstork1  demonstrated:

    Angela23_1-1695453901759.png

    Angela23_2-1695454002678.png

    But I get this error:

    Angela23_0-1695453836299.png

     

     

  • Pstork1 Profile Picture
    68,858 Most Valuable Professional on at

    As I mentioned earlier, are you triggering this on a list or a library?  If you look at my screenshot you can see its triggered on a file creation not an item creation. How are you getting the file content based on the item trigger since that doesn't include the file identifier.

  • Angela23 Profile Picture
    114 on at

    you are right @Pstork1 . I have a Document library and I need a trigger for my file, so *'ve changed it but still get this error:

    Angela23_0-1695467521113.pngAngela23_1-1695467571560.png

     

  • Pstork1 Profile Picture
    68,858 Most Valuable Professional on at

    When you hover over the file content what does the JSON look like?  

  • Angela23 Profile Picture
    114 on at

    @Pstork1 
    when I hover over the body: body('Get_file_content')
    But the JSON is very long:

    Angela23_0-1695473837481.png

    Do you want me to download it for you? its more than 60.000 characters

  • Verified answer
    Michael E. Gernaey Profile Picture
    53,685 Super User 2025 Season 2 on at

    @Angela23 

     

    Please change the File Content (from the Run a Child flow), to this expression

    body('Get_file_content')['$content']


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

David_MA 223 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 205 Most Valuable Professional

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard