cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

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

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

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



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ ... and if you like my response, you might like also the tips and solutions on my Power Automate related blog ]

View solution in original post

2 REPLIES 2
Super User II
Super User II

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



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ ... and if you like my response, you might like also the tips and solutions on my Power Automate related blog ]

View solution in original post

Regular Visitor

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

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (61,220)