Hi everyone, I kinda need support here.
After many attempts, I've been trying to get the following OnSubmit to work:
Code:
UploadFileOnSharepoint.Run(
{
FileName: First(DataCardValueUpload.Attachments).Name,
FileContent: First(DataCardValueUpload.Attachments).Value
}
);
I have the following inputs in my automate flow:
- FileName (Takes in the file name)
- FileContent (takes in the files to upload on Sharepoint)
Now my problem here is I keep getting the following error when using that code with a button.
So the idea here is to upload files and a flow saves them to SharePoint. However, I've been battling with this after a few code refactors.

