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