
Announcements
Hi,
I'm pretty to new to all this and was hoping for some help. I'm trying to upload a file to SharePoint and set the metadata using PowerApps/PowerAutomate. All worked fine until I tried to pass a name.
I'm using the PowerAppV2 Trigger:
and in "Update File Properties"...
The problem is with the code in PowerAutomate:
EasyUpload.Run(AuthorDropDown.Selected.DisplayName,{contentBytes:First(AttachmentControl.Attachments).Value,name:First(AttachmentControl.Attachments).Name})
"EasyUpload" is my flow and "AuthorDropDown" is a combobox containing "Office365Users.SearchUser({searchTerm: AuthorDropDown.SearchText})"
The error message i'm getting is "EasyUpload.Run failed: The method "run" has an invalid value for parameter "text"
I thought maybe its because AuthorDropDown is a table so I changed it to:
EasyUpload.Run(First(AuthorDropDown.Selected.DisplayName,{contentBytes:First(AttachmentControl.Attachments).Value,name:First(AttachmentControl.Attachments).Name})
but that didn't work either.
Really appreciate any help
Bethany
Hi @Bethany123 ,
I had similar issue, I fixed it using 'PowerApps' trigger instead of V2.
Wherever you require Input from Canvas PowerApp, simply insert 'Ask from PowerApps' from dynamic content within the Flow for any field.
Then update or refresh the Flow that's connected to your App.
Now you will see that Canvas App is asking for parameters that you have asked in Flow
Note: variable for asking in PowerApps depends on your Action name, so keep unique names else you will get confused
Hope this helps