cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rsymmons
Resolver I
Resolver I

File content received as object instead of string

Hi,

 

Not the most advanced Power Automate use so apologies for the lack of incorrect terminology. 

 

I've got a flow that is sending "file content" to a child workflow however the "run a child flow" step fails due to the file content part of it being received as an object instead of a string.

 

This is the error:

The input body for trigger 'manual' of type 'Request' did not match its schema definition. Error details: 'Invalid type. Expected String but got Object.'.

 

This is the input: 

{
"$content-type": "application/pdf",
"$content": "JVBERi0xLjUNCjQgMCBvYmoNCjw8L1 (deleted this data for sharing)"
}

 

How can I just extract the content data e.g. JVBERi0xLjUNCjQgMCBvYmoNCjw8L1

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Babybots
Resolver I
Resolver I

outputs('insert_name_here')?['$content']

View solution in original post

3 REPLIES 3
Babybots
Resolver I
Resolver I

outputs('insert_name_here')?['$content']

rsymmons
Resolver I
Resolver I

That worked! I had to use "compose" and then reference the compose step in the expression:

 

outputs('Compose')?['$content']

Awesome 🙂 Glad to hear it helped!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (4,095)