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 Platform Community / Forums / Power Automate / Error 52 Bad Gateway -...
Power Automate
Unanswered

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

 

 

Categories:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,185 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard