Hello,
I have inherited a PowerApp that uses a file upload to SharePoint. The SharePoint then references a variable that is used in a separate app. Unfortunately, when I inherited the files, the original flow was lost, so I am trying to figure out what it could be and understand where the various connections take place. Any help would be appreciated.
App - On Start
Set(varURL, "[Long, redacted URL that included Invoking a Manual Trigger]");
Set(varTopImageURL, Concatenate(varURL, LookUp(Variables, Title = "TopImage", Value)));
Set(varBottomImageURL, Concatenate(varURL, LookUp(Variables, Title = "BottomImage", Value)));
Set(varMiddleImageURL, Concatenate(varURL, LookUp(Variables, Title = "MiddleImage", Value)));
The actual URL in the varURL gives me an error that says: "WorkflowTriggerIsNotEnabled" and that the state is "suspended."
On Photo Upload (upload button is AddMediaButton)
Set(TopImageJSON, JSON(TopImage,JSONFormat.IncludeBinaryData));
Upload.Run(TopImageJSON);
Patch(Variables,
First( Filter( Variables, Title = "TopImage" ) ), { Value: ("/App_Images/Images/"&AddMediaButton2.FileName) } );
Refresh(Variables);
Set(varTopImageURL, Concatenate(varURL, LookUp(Variables, Title = "TopImage", Value)));
ClearCollect(TopImage, "");
Currently getting an error for the UPload.Run (Invalid number of arguments: received 1, expected 2)
Flow
See photos attached (Flow 2 is a better look at the code in Flow).
The other app just references the variable
varTopImageURL
Currently, it looks like the variable Title is changing every time I try to upload a photo, but I am clearly not getting a photo upload. Any idea on where to start? I think it has something to do with the URL in the OnStart & the Flow, but I'm not sure where / how to fix those things.
(Also, there's a repeated code for the bottom & middle buttons, but I didn't add that in)
Thanks!