web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Powerapp to run Powera...
Power Apps
Answered

Powerapp to run Powerautomate flow to write attachment data into Sharepoint Document library

(0) ShareShare
ReportReport
Posted on by 19

Hi Guys,

 

I have a PowerApps app that needs data stored in a attachment control to be uploaded into a sharepoint document library.

Video I have followed this tutorial to get my powerapps and power automate to write successfully.

 

 

‘’Powerapp-JSON’.Run(JSON(colImages, JSONFormat.IncludeBinaryData));	

 

I am calling this Power automate function via the following command. 

Right now i have written my Power Automate function to write to a Particular folder in the library which is called "Asia"

Screenshot 2023-09-01 at 1.36.32 PM.png 

 

 

As in my Powerapps, i have other Regions like Europe, North America, Africa etc which is stored inside a variable called varRegion.

 

So what i am trying to do is this, im trying to tweak my power automate to get an input from powerapps which is the region so that the automation can create file in the correct folder location. 

 

Can i know how can this be done? I tried using the PowerApps v2 to request for an input, which i can do for Region and JSON. but i am not able to parse the JSON output correctly. 

 

If you see the JSON scheme is not reflecting correctly. 

Screenshot 2023-09-01 at 1.34.35 PM.png

 

I am kinda stuck here on how to proceed further. The only workaround would be to create 5 seperate flows for each region and then use a IF statement inside PowerApps code to check against the varRegion variable.

 

Appreciate any help in advance. Thanks

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @SGP_SGR ,

     

    You should use PowerApps V1 trigger, use two 'Ask in PowerApps' dynamic contents in the flow, one for Region the other for uploading files. So, in your App you need to pass two values to the flow. And in the flow, use a Compose to create dynamic folder paths based on the Region, use the result in Create file action:

    vjefferni_0-1693549693679.png

     

  • Noob345 Profile Picture
    19 on at

    Thanks, tried this method and it works.. Appreciate it. Have marked answer as solution. 

  • obrienk Profile Picture
    2 on at

    How do I obtain this app so I can download and update SPSS license?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard