cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MichelH
Advocate V
Advocate V

Kaizala Howto use: MicrosoftKaizala.UploadMediaFileContent( fileContent )

So, trying to upload some media from pc to kaizala.
Should be easy on our "low code" platform 🙂
There is a predefined function for that, so all I need to do is provide the right argument.

 

MicrosoftKaizala.UploadMediaFileContent (file fileContent)

file

Summary: File Content

Description: The media should be in multipart form.

 

That is not very clear to me.

No way I can upload from a html form in powerapps.  🙂 

What could they mean by that "multipart form".

And anyway, multipart means, provide the right names with the right content. 

 

So I've tried multiple varieties of "file" type stuff I used in other apps, just to see if anything matches:

 

 

MicrosoftKaizala.UploadMediaFileContent( {file:{ name:First(attach.Attachments).Name, content:First(attach.Attachments).Value } });

 

 

It does say that it expects a "blob"

So I tried to give it a blob:

 

 

MicrosoftKaizala.UploadMediaFileContent( Image1.Image );

 

 

But this, just like everything else I tried gives me:

 

MicrosoftKaizala.UploadMediaFileContent failed: {
"message": "No file to upload!",
"errorCode": "InvalidParameters",
"errorCategoryKey": "InvalidParametersException"
}

 

Did anyone try this?

Anyone got a clue?

 

Cheers,

 

Michel

3 REPLIES 3
JacobShand
Helper II
Helper II

Hi mate,

 

Have you tried using the Microsoft Kaizala sections in PowerAutomate? 

See here: https://docs.microsoft.com/en-gb/connectors/kaizala/#upload-a-media-file

Sometimes PowerApps doesn't handle stuff like this well. You can pass the image content as Base64 to Flow, and then work out what the action needs. PowerAutomate should also give you a bit more information as to what is breaking as well.

 

Message me if you need a hand, happy to take  look 🙂

 

Regards,

Jacob Shand | Automation Specialist

NextStep Creations


Taking your PowerApps Skill the NextStep

 

I've given this a try.

 

I made a fileupload flow that can accept the media and a kaizala groupID and adjusted the powerapp to use that. 

 

 
 

image.png

 

But unfortunately I am where I was.

 

Seems I will need to wait with Kaizala development, until some day Microsoft gets the act together on the Kaizala connector.

 

I'm not finding very much to work as expected.

Even though I'm definitely not yet doing anything special.

 

 

When I hover the "Upload media from attachment" control, it helpfully says: 

 

Media file in base64 format

 

Don't be like me. Don't believe it.  Use binary instead.

 

dataUriToBinary(body('Parse_JSON')?['FileContent'])

 


Let's see where this gets me 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,611)