cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Flow save failed when saving a Note document to SharePoint

I am trying to create a Flow that saves documents to a SharePoint folder after a workflow has generated them using a template. Method taken from here.  

 

Though I can not save this flow as it throws back this error message:

Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'body' validation failed in workflow operation 'Create_file': The parameter with value '"@triggerOutputs()?['body/documentbody']"' in path 'body' with type/format 'String/bytes' is not convertible to type/format 'String/binary'.'.

 

My flow stripped down to bare bones is:

Screenshot 2021-02-08 185911.png

 

What am I missing?

 

Thanks in advance. PaddyD

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

Hi,

 

You need to convert document using base64ToBinary() while storing it to SharePoint like below

SharepointFile.jpg

View solution in original post

2 REPLIES 2
Frequent Visitor

Hi,

 

You need to convert document using base64ToBinary() while storing it to SharePoint like below

SharepointFile.jpg

View solution in original post

Thank you so much that has done it.

Helpful resources

Announcements
New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (67,087)