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 / creating a folder in s...
Power Apps
Answered

creating a folder in sharepoint using flow and returning the file path to powerapps

(0) ShareShare
ReportReport
Posted on by 129

Good afternoon.

 

I'm trying to utilise flow to create a folder in share point and return the file path.

it does actually create the folder in seconds however it doesn't return the link and after a few minutes gives me the error "request to the backend service timed out"

the flow is here.

Alastairs_0-1699373311803.png

Alastairs_1-1699373338997.png

and the onselect for my button is Set(
var_link,
'PowerAppV2->create_folder'.Run(folder_name)
)

 

i'm hoping it's something simple. thank you in advance

Categories:
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @Alastairs 

     

    Can you show the run history and the error. 

  • Alastairs Profile Picture
    129 on at

    Good morning, is there away to see the run history for flows built within powerapps like you can with flows that you create in power automate itself? i've some experience with powerautomate but this is my first time creating them within powerapps

  • Alastairs Profile Picture
    129 on at

    i've created the flow just in powerautomate and it looks like it's having issues with the create folder step 

    Alastairs_0-1699442562002.png

    however, it has actually created the folder on the first try

  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @Alastairs 

     

    You can easily see the run history in both power apps and power automate by clicking the three dots and clicking on run history. 

    Sundeep_Malik_0-1699446288755.png

     

    Plus the flows that you make in power apps are visible in power automate and

    the flows that you create in power apps are visible in power automate as well.

    Both are connected only.

     

    Now coming to the error part. By just seeing bad gateway error I cannot really say what is the error, can you show more error details.

  • Alastairs Profile Picture
    129 on at

    thanks for that, i initially couldn't see the flow created in app with in my list of flows but it turns out my previus flows are under company environment whilst the flow created in apps is under my own developer enviroment. could that be the issue? the error i'm getting is this which is in the create folder part. the folder is created everytime, it just fails to realise it's done it!

     

    Thanks for all your help wiht this

    {
      "error": {
        "code": 502,
        "source": "flow-apim-europe-002-northeurope-01.azure-apim.net",
        "clientRequestId": "b55b32b2-4e5b-4956-bd19-f74b3fbf3d50",
        "message": "BadGateway",
        "innerError": {
          "status": 500,
          "message": "Object reference not set to an instance of an object.\r\nclientRequestId: b55b32b2-4e5b-4956-bd19-f74b3fbf3d50\r\nserviceRequestId: b55b32b2-4e5b-4956-bd19-f74b3fbf3d50"
        }
      }
  • Verified answer
    Alastairs Profile Picture
    129 on at

    solved(ish) looks like an issue with the sharepoint i was trying to save to. tested on another one and it worked fine!

     

    Thanks for all your help though

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 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard