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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Error 52 Bad Gateway - When Creating a new Sharepoint Folder in Flow

(0) ShareShare
ReportReport
Posted on by 10

Hi, 

I am creating a work flow to create a folder in the Document Library of my SharePoint site when an item is added to a list.  This flow worked fine until I added a date to the File Folder name.  I am trying to format the date as 'yyyyMMdd'.  I keep getting a Bad Gateway error.  

 

I have tried several methods, including using the expression: formatDateTime(triggerOutputs()? ['body/Start_x0020_Date'],'yyyyMMdd')

 

My current attempt uses the method in the screenshots.  I have removed the forward slashes from the date, as they were creating unwanted subfolders.  I am not sure what else is wrong with the date.   I would appreciate any thoughts on how to resolve. Thanks!Capture 1.png

 

Capture 2.png

 

Capture 3.png

 

 

I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,179 Most Valuable Professional on at
    Re: Error 52 Bad Gateway - When Creating a new Sharepoint Folder in Flow

    Hello @BIMSupport ,

    I think you have an empty space before the 'Outputs' in the 'Create new folder' action and that's the reason it's failing.

    image.png

    image.png

  • BIMSupport Profile Picture
    10 on at
    Re: Error 52 Bad Gateway - When Creating a new Sharepoint Folder in Flow

    You're right!! Wow... can't believe I missed this.  I guess fresh eyes really make a difference.  Thanks so much for your help!!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard