cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oappdev
Super User
Super User

character '/' is not allowed in the names.

Hello Power Automate Community,

 

Is there an Expression to convert / to underscores.

 

I need to save the file in this format FL_03_10_2021_JohnDoe.pdf

 

l' m using File System connector to save the file to share drive.

 

Capture.PNG

 Character.PNG

 

 

 

As always, thank you so much!

1 ACCEPTED SOLUTION

Accepted Solutions

Hey Mate, I assume the "Date of Service" variable is the problem.

 

Add a Compose action and add the formula below -

 

replace(<Date of Service>,'/','_')
 
In the Create action pass the output of the Compose action.
 
CFernandes_0-1618429896128.png

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

3 REPLIES 3
CFernandes
Super User
Super User

Hey @oappdev ,

 

You can use 

 

replace(outputs('Compose'),'/','_')
 
CFernandes_0-1618427161756.png

 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

Thank you so much @CFernandes  How do I apply the expression so it convert to underscores for all Create files. My apologize, I should have given more details. 

 

Capture1.PNG

 

As always, Thank you in advance.

Hey Mate, I assume the "Date of Service" variable is the problem.

 

Add a Compose action and add the formula below -

 

replace(<Date of Service>,'/','_')
 
In the Create action pass the output of the Compose action.
 
CFernandes_0-1618429896128.png

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (5,089)