Skip to main content
Community site session details

Community site session details

Session Id : LGTpauIpcqFdfpvgjh8GFJ
Power Automate - Building Flows
Answered

Send Sharepoint file content to Child flow

Like (0) ShareShare
ReportReport
Posted on 22 Sep 2023 21:22:09 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 

  • Angela23 Profile Picture
    114 on 24 Sep 2023 at 15:19:49
    Re: Send Sharepoint file content to Child flow

    Thank you soooooo soooo much

  • Verified answer
    Pstork1 Profile Picture
    67,351 Most Valuable Professional on 24 Sep 2023 at 13:35:32
    Re: Send Sharepoint file content to Child flow

    You are trying to convert the file to PDF in the child flow actions. But the file you are saving to SharePoint uses the original file content that is passed to the child flow, which is not PDF.  You need to create the file using the file content from the Convert to PDF action.

     

     

  • Angela23 Profile Picture
    114 on 24 Sep 2023 at 12:39:09
    Re: Send Sharepoint file content to Child flow

    Sure, When a PDF is generated in the Child Flow from the file content received from the Parent Flow, it cannot be correctly opened.

    Angela23_0-1695559235755.png

     

     

    Angela23_1-1695559402625.png

     

  • Pstork1 Profile Picture
    67,351 Most Valuable Professional on 24 Sep 2023 at 12:36:02
    Re: Send Sharepoint file content to Child flow

    Can you be more specific about what is wrong with the file?

  • Angela23 Profile Picture
    114 on 24 Sep 2023 at 12:02:35
    Re: Send Sharepoint file content to Child flow

    @Pstork1 @FLMike 
    Hello again
    Unfortunately the file is not saved correct 😞

    Angela23_0-1695556829659.png

    Does is it has something to do with the file content?



  • Verified answer
    Pstork1 Profile Picture
    67,351 Most Valuable Professional on 23 Sep 2023 at 19:23:33
    Re: Send Sharepoint file content to Child flow

    Nope, I thought maybe you were using the whole body.  it should be 

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

    as @FLMike said.  Otherwise you are feeding the connection an object that contains the file instead of a record that is the file.  That's why you were getting the error.

  • Verified answer
    Angela23 Profile Picture
    114 on 23 Sep 2023 at 14:43:58
    Re: Send Sharepoint file content to Child flow

    @FLMike and @Pstork1 
    Bingo Its working now. Thank you soooooo much for your help

  • Verified answer
    Michael E. Gernaey Profile Picture
    46,546 Super User 2025 Season 2 on 23 Sep 2023 at 14:18:58
    Re: Send Sharepoint file content to Child flow

    @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

  • Angela23 Profile Picture
    114 on 23 Sep 2023 at 12:58:52
    Re: Send Sharepoint file content to Child flow

    @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

  • Pstork1 Profile Picture
    67,351 Most Valuable Professional on 23 Sep 2023 at 12:18:19
    Re: Send Sharepoint file content to Child flow

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

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete