Power Apps -> Sharepoint



This content originally appeared on DEV Community and was authored by Yordi van den Bulk

Hi All,

Beginner Power Platform user here.

I’ve build a Power App for the company I work for. Its simple, it send entered data to an Excel table.

But, I want to extend the app with more features. On of the features is a connection with SharePoint to upload images (only images) to a specific folder path.

I used ChatGpt but it doesn’t help me. Maybe what I want is not possible. But lets give it a try.

My ideal idea:

Uploading images using Power Apps.

What I tried so far.

Power Automate:
Trigger: Power Apps (V2) inputs: File and Text.
Connection to SharePoint, using Create File. Path entered, File name as the dynamic of Power Apps and same situation for File Content.

The flow works if I run it through Power Automate.

But somehow the information from Power Apps to Power Automate to Sharepoint does not work or its uploaded with extra “_” underscore symbols.

What Am I doing wrong here?
Code:

TEST12.Run(Concatenate(Test1234.Text, “.jpg”),JSON(AddMediaButton2.Image, JSONFormat.IncludeBinaryData))

In Power Apps I have a Textinput (Test1234), and an AddPicture control (AddMediaButton2)

The code is placed in a “Button”.

Let me know your thoughs, knowledge, guidance.

Thanks in advance!


This content originally appeared on DEV Community and was authored by Yordi van den Bulk